summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-13 09:36:36 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-13 10:16:40 -0600
commitffdad17d0db1d55d39911d637c650ea0acada78b (patch)
tree1bae8a9e699c698f723bbd8d8e989361000f2a13 /tools
parent688bc60658b391524c6b641e0a5e5ecd73322d02 (diff)
downloadnumpy-ffdad17d0db1d55d39911d637c650ea0acada78b.tar.gz
2to3: Apply renames fixer.
Rename sys.maxint to sys.maxsize when the Python version is >= 3. This change was made in Python 3 because all integers are 'long' integers and their maximum value bears no relationship to the C type that int used to represent. The new sys.maxsize value is the maximum value of Py_ssize_t. This change has not led to any reported problems since the numpy 1.5 release. Closes #3082
Diffstat (limited to 'tools')
-rwxr-xr-xtools/py3tool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/py3tool.py b/tools/py3tool.py
index 0caf6ebeb..15d1d9215 100755
--- a/tools/py3tool.py
+++ b/tools/py3tool.py
@@ -81,7 +81,7 @@ FIXES_TO_SKIP = [
'raise',
'raw_input',
'reduce',
-# 'renames',
+ 'renames',
'repr',
'setliteral',
'standarderror',