From 5b67c82abc70a2ca76ff21fa706b045259c26a15 Mon Sep 17 00:00:00 2001 From: Jan Margeta Date: Sat, 15 Apr 2017 11:13:31 +0200 Subject: 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 --- gerber/rs274x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerber') 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)]: -- cgit