summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2020-08-15 23:50:31 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2020-08-15 23:50:31 +0100
commitc5e078c4374dc019966fd023d6ec296ac478d169 (patch)
treee836f3800b8d7bc995384f36604dcf198b1ecd03
parentbaec830f75f24cdebfde4103fd3799f1de51bd6c (diff)
downloadswig-c5e078c4374dc019966fd023d6ec296ac478d169.tar.gz
Revert 2to3 modification
Use sys.maxint still for Python 2
-rw-r--r--Examples/test-suite/python/primitive_types_runme.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/python/primitive_types_runme.py b/Examples/test-suite/python/primitive_types_runme.py
index f550fc2ab..7ed4b52d1 100644
--- a/Examples/test-suite/python/primitive_types_runme.py
+++ b/Examples/test-suite/python/primitive_types_runme.py
@@ -472,7 +472,7 @@ maxllong = overllong - 1
maxullong = 2 * maxllong + 1
# Make sure Python 2's sys.maxint is the same as the maxlong we calculated
-if sys.version_info[0] <= 2 and maxlong != sys.maxsize:
+if sys.version_info[0] <= 2 and maxlong != sys.maxint:
raise RuntimeError("sys.maxint is not the maximum value of a signed long")
def checkType(t, e, val, delta):