summaryrefslogtreecommitdiffstats
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-20 07:49:57 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-20 07:49:57 (GMT)
commitdffbf5f5421cbeb20237280c0bd70f989269f844 (patch)
tree51a520dcf10d589bd145d9117b010dab6bc28e3b /Lib/pickletools.py
parent06d2a2cb0e105019e8bd5e29a3c81c6874e6396a (diff)
downloadcpython-dffbf5f5421cbeb20237280c0bd70f989269f844.zip
cpython-dffbf5f5421cbeb20237280c0bd70f989269f844.tar.gz
cpython-dffbf5f5421cbeb20237280c0bd70f989269f844.tar.bz2
Revert copy_reg -> copyreg rename.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 623dd16..ae02a36 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
-copyreg.safe_constructors are removed from the unpickling code.
+copy_reg.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 copyreg module's
+ callable has been registered with the copy_reg 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