[Python-checkins] r63047 - sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py

alexandre.vassalotti python-checkins at python.org
Sun May 11 11:03:24 CEST 2008


Author: alexandre.vassalotti
Date: Sun May 11 11:03:24 2008
New Revision: 63047

Log:
Added import fixer for copy_reg rename.


Modified:
   sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py

Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_imports.py	Sun May 11 11:03:24 2008
@@ -17,6 +17,11 @@
 MAPPING = {"StringIO":  ("io", ["StringIO"]),
            "cStringIO": ("io", ["StringIO"]),
            "__builtin__" : ("builtins", builtin_names),
+           'copy_reg': ('copyreg', ['pickle',
+                                    'constructor',
+                                    'add_extension',
+                                    'remove_extension',
+                                    'clear_extension_cache'])
           }
 
 


More information about the Python-checkins mailing list