summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorHamilton Kibbe <ham@hamiltonkib.be>2015-06-11 14:00:40 -0400
committerHamilton Kibbe <ham@hamiltonkib.be>2015-06-11 14:00:40 -0400
commitec2ca92da6e3dac1d56bfba28d4c2cadc35a9811 (patch)
tree5ea31a8b95ad0b0f787d2dc86801d53e405cc95f /gerber
parent94f3976915d64a77135a1fdc8983085ee8d2e1f9 (diff)
downloadgerbonara-ec2ca92da6e3dac1d56bfba28d4c2cadc35a9811.tar.gz
gerbonara-ec2ca92da6e3dac1d56bfba28d4c2cadc35a9811.tar.bz2
gerbonara-ec2ca92da6e3dac1d56bfba28d4c2cadc35a9811.zip
Python 3 fix
remove dict itervalues() calls
Diffstat (limited to 'gerber')
-rwxr-xr-xgerber/excellon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index 1f0c570..65d014f 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -135,7 +135,7 @@ class ExcellonFile(CamFile):
rprt += '\nTool List:\n----------\n\n'
rprt += ' Code Size Hits Path Length\n'
rprt += ' --------------------------------------\n'
- for tool in self.tools.itervalues():
+ for tool in iter(self.tools.values()):
rprt += toolfmt.format(tool.number, tool.diameter, tool.hit_count, self.tool_path_length(tool.number))
if filename is not None:
with open(filename, 'w') as f:
@@ -153,7 +153,7 @@ class ExcellonFile(CamFile):
break
# Write out coordinates for drill hits by tool
- for tool in self.tools.itervalues():
+ for tool in iter(self.tools.values()):
f.write(ToolSelectionStmt(tool.number).to_excellon(self.settings) + '\n')
for hit in self.hits:
if hit.tool.number == tool.number:
@@ -168,7 +168,7 @@ class ExcellonFile(CamFile):
self.units = 'inch'
for statement in self.statements:
statement.to_inch()
- for tool in self.tools.itervalues():
+ for tool in iter(self.tools.values()):
tool.to_inch()
for primitive in self.primitives:
primitive.to_inch()