diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 18:03:52 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-16 18:03:52 (GMT) |
commit | ea0b22a167f25deaf170da2c321fbd9d64af1ab3 (patch) | |
tree | d2a8a25bc7f0f07029ff0cf58a041807c316792d /Lib/pickletools.py | |
parent | 5e7b1c07bc3c6f22f8fbc276c7a1ac0aecfee64a (diff) | |
download | cpython-ea0b22a167f25deaf170da2c321fbd9d64af1ab3.zip cpython-ea0b22a167f25deaf170da2c321fbd9d64af1ab3.tar.gz cpython-ea0b22a167f25deaf170da2c321fbd9d64af1ab3.tar.bz2 |
Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.
This fixes the omissions of configparser, copyreg, queue and
socketserver renaming.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r-- | Lib/pickletools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py index ae02a36..623dd16 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -136,7 +136,7 @@ this and there isn't a use case that warrants the expense of such an analysis. To this end, all tests for __safe_for_unpickling__ or for -copy_reg.safe_constructors are removed from the unpickling code. +copyreg.safe_constructors are removed from the unpickling code. References to these variables in the descriptions below are to be seen as describing unpickling in Python 2.2 and before. """ @@ -1525,7 +1525,7 @@ opcodes = [ BUILD opcode to apply __setstate__ to that argument. If type(callable) is not ClassType, REDUCE complains unless the - callable has been registered with the copy_reg module's + callable has been registered with the copyreg module's safe_constructors dict, or the callable has a magic '__safe_for_unpickling__' attribute with a true value. I'm not sure why it does this, but I've sure seen this complaint often enough when |