Merge pull request #67 from jmargeta/python_3_fix

Add GerberParser fix for Python 3.x
This commit is contained in:
Hamilton Kibbe 2017-07-04 01:31:32 -04:00 committed by GitHub
commit ea0643dcf4

View file

@ -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)]: