Skip to content

Commit

Permalink
Fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettR committed Mar 15, 2024
1 parent fa8f912 commit 4de9a23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Stretch/kiplug/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ def clear(self):
def From_PCB(self, pcb):

for item in pcb:
if sys.version_info[0] != 3:
if type(item) == unicode:
item = str(item)
if type(item) is str:
print(item)
else:
Expand Down Expand Up @@ -161,6 +158,9 @@ def From_PCB(self, pcb):
self.via.append(via)

else:
# Numeric non-integer has to be tricked
if item[0] == 'generator_version':
item[1] = str(item[1]) + ' '
self.metadata.append(item)


Expand Down Expand Up @@ -321,6 +321,7 @@ def To_SVG(self):
else:
svg = base.encode()

print(self.metadata)
return svg


Expand Down

0 comments on commit 4de9a23

Please sign in to comment.