Replace sys.maxint with sys.maxsize

In Python 3, sys.maxint was removed, however its current use
can be safely substituted with sys.maxsize (also in Python 2)

See also: https://docs.python.org/3.1/whatsnew/3.0.html#integers
This commit is contained in:
Jan Margeta 2017-04-15 11:13:31 +02:00
parent dd0abbf307
commit 5b67c82abc

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