This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ajaksu2
Recipients ajaksu2, alexandre.vassalotti, hagen
Date 2008-08-28.16:40:59
SpamBayes Score 0.00011897992
Marked as misclassified No
Message-id <1219941720.54.0.256951482322.issue3675@psf.upfronthosting.co.za>
In-reply-to
Content
Hagen,
does this simple patch (against 2.6) solve it for you?

Index: Lib/pickle.py
===================================================================
--- Lib/pickle.py       (revision 66050)
+++ Lib/pickle.py       (working copy)
@@ -1121,6 +1121,8 @@

     def find_class(self, module, name):
         # Subclasses may override this
+        if module == "builtins":
+            module = "__builtin__"
         __import__(module)
         mod = sys.modules[module]
         klass = getattr(mod, name)

I think a dict mapping the moved modules would work better, perhaps
having it in PyPI would be enough?
History
Date User Action Args
2008-08-28 16:42:00ajaksu2setrecipients: + ajaksu2, alexandre.vassalotti, hagen
2008-08-28 16:42:00ajaksu2setmessageid: <1219941720.54.0.256951482322.issue3675@psf.upfronthosting.co.za>
2008-08-28 16:41:00ajaksu2linkissue3675 messages
2008-08-28 16:40:59ajaksu2create