[Python-checkins] r59209 - sandbox/trunk/2to3/fixes/fix_types.py

christian.heimes python-checkins at python.org
Wed Nov 28 09:28:26 CET 2007


Author: christian.heimes
Date: Wed Nov 28 09:28:25 2007
New Revision: 59209

Modified:
   sandbox/trunk/2to3/fixes/fix_types.py
Log:
Added even more types to the types fixer

Modified: sandbox/trunk/2to3/fixes/fix_types.py
==============================================================================
--- sandbox/trunk/2to3/fixes/fix_types.py	(original)
+++ sandbox/trunk/2to3/fixes/fix_types.py	Wed Nov 28 09:28:25 2007
@@ -31,6 +31,7 @@
         'ComplexType' : 'complex',
         'DictType': 'dict',
         'DictionaryType' : 'dict',
+        'EllipsisType' : 'type(Ellipsis)',
         #'FileType' : 'io.IOBase',
         'FloatType': 'float',
         'IntType': 'int',
@@ -38,6 +39,7 @@
         'LongType': 'int',
         'ObjectType' : 'object',
         'NoneType': 'type(None)',
+        'NotImplementedType' : 'type(NotImplemented)',
         'SliceType' : 'slice',
         'StringType': 'bytes', # XXX ?
         'StringTypes' : 'str', # XXX ?


More information about the Python-checkins mailing list