summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2017-07-04 01:31:32 -0400
committerGitHub <noreply@github.com>2017-07-04 01:31:32 -0400
commitea0643dcf45e3841c8d8d9e038293cb2eff75792 (patch)
tree47b159e04db0cb9f4b867c48cf78fa75f4563560 /gerber/rs274x.py
parente754f5946885a5c5a9cfa49202ccef4c447d8116 (diff)
parent5b67c82abc70a2ca76ff21fa706b045259c26a15 (diff)
downloadgerbonara-ea0643dcf45e3841c8d8d9e038293cb2eff75792.tar.gz
gerbonara-ea0643dcf45e3841c8d8d9e038293cb2eff75792.tar.bz2
gerbonara-ea0643dcf45e3841c8d8d9e038293cb2eff75792.zip
Merge pull request #67 from jmargeta/python_3_fix
Add GerberParser fix for Python 3.x
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index fee60b3..afdf45f 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -740,7 +740,7 @@ class GerberParser(object):
# from start and end). We select the center with the least error in
# radius from all the options with a valid sweep angle.
- sqdist_diff_min = sys.maxint
+ sqdist_diff_min = sys.maxsize
center = None
for factors in [(1, 1), (1, -1), (-1, 1), (-1, -1)]: