diff options
author | Jan Margeta <jmargeta@gmail.com> | 2017-04-15 11:13:31 +0200 |
---|---|---|
committer | Jan Margeta <jmargeta@gmail.com> | 2017-04-15 11:13:31 +0200 |
commit | 5b67c82abc70a2ca76ff21fa706b045259c26a15 (patch) | |
tree | ad4640c5cb2e4608c266ad6ca92b84366b484dcf /gerber/rs274x.py | |
parent | dd0abbf3072b59c8e5ec437a85ccaf01272d8043 (diff) | |
download | gerbonara-5b67c82abc70a2ca76ff21fa706b045259c26a15.tar.gz gerbonara-5b67c82abc70a2ca76ff21fa706b045259c26a15.tar.bz2 gerbonara-5b67c82abc70a2ca76ff21fa706b045259c26a15.zip |
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
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r-- | gerber/rs274x.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py index 5191fb7..813b246 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)]: |