summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-13 12:21:42 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-14 08:57:45 -0600
commitc879ad8a39f2b74edcdaa05a2f2f854fb235537d (patch)
tree378c562ff234193cc7391a0f89095b693f42a42e /tools
parent3f2c789ffd0d2e05596b15ea6cd644262f96200e (diff)
downloadnumpy-c879ad8a39f2b74edcdaa05a2f2f854fb235537d.tar.gz
2to3: Apply types fixer.
Python 3 removes the builtin types from the types module. The types fixer replaces such references with the builtin types where possible and also takes care of some special cases: types.TypeNone <- type(None) types.NotImplementedType <- type(NotImplemented) types.EllipsisType <- type(Ellipsis) The only two tricky substitutions are types.StringType <- bytes types.LongType <- int These are fixed up to support both Python 3 and Python 2 code by importing the long and bytes types from numpy.compat. Closes #3240.
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 48d5ba2f7..9a6ec7fc5 100755
--- a/tools/py3tool.py
+++ b/tools/py3tool.py
@@ -88,7 +88,7 @@ FIXES_TO_SKIP = [
'sys_exc',
'throw',
'tuple_params',
-# 'types',
+ 'types',
# 'unicode',
# 'urllib',
# 'ws_comma',