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

benjamin.peterson python-checkins at python.org
Tue Jun 24 04:14:14 CEST 2008


Author: benjamin.peterson
Date: Tue Jun 24 04:14:14 2008
New Revision: 64493

Log:
add a fix_import mapping for cPickle -> pickle

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	Tue Jun 24 04:14:14 2008
@@ -19,6 +19,11 @@
 # XXX: overhead to the fixer.
 MAPPING = {"StringIO":  ("io", ["StringIO"]),
            "cStringIO": ("io", ["StringIO"]),
+           "cPickle": ("pickle", ['BadPickleGet', 'HIGHEST_PROTOCOL',
+                                  'PickleError', 'Pickler', 'PicklingError',
+                                  'UnpickleableError', 'Unpickler', 'UnpicklingError',
+                                  'compatible_formats', 'dump', 'dumps', 'format_version',
+                                  'load', 'loads']),
            "__builtin__" : ("builtins", builtin_names),
            'copy_reg': ('copyreg', ['pickle',
                                     'constructor',


More information about the Python-checkins mailing list