diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:55:36 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:55:36 (GMT) |
commit | f7fa63dd55e638d300a8d4a148dcedb402fdb750 (patch) | |
tree | 53cc22a0517f95753d4772c11f1c247a7c30fa8b /Lib/pickle.py | |
parent | 7760008c38b6a88dfdc675d97668763a7c1cacd2 (diff) | |
download | cpython-f7fa63dd55e638d300a8d4a148dcedb402fdb750.zip cpython-f7fa63dd55e638d300a8d4a148dcedb402fdb750.tar.gz cpython-f7fa63dd55e638d300a8d4a148dcedb402fdb750.tar.bz2 |
Rename copy_reg module to copyreg.
Updated documentation.
Merged revisions 63042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63042 | alexandre.vassalotti | 2008-05-11 04:25:28 -0400 (Sun, 11 May 2008) | 5 lines
Added module stub for copy_reg renaming in 3.0.
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
........
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index a9d4355..bf5c951 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -1,6 +1,6 @@ """Create portable serialized representations of Python objects. -See module copy_reg for a mechanism for registering custom picklers. +See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: @@ -26,8 +26,8 @@ Misc variables: __version__ = "$Revision$" # Code version from types import FunctionType, BuiltinFunctionType -from copy_reg import dispatch_table -from copy_reg import _extension_registry, _inverted_registry, _extension_cache +from copyreg import dispatch_table +from copyreg import _extension_registry, _inverted_registry, _extension_cache import marshal import sys import struct @@ -299,7 +299,7 @@ class Pickler: self.save_global(obj) return - # Check copy_reg.dispatch_table + # Check copyreg.dispatch_table reduce = dispatch_table.get(t) if reduce: rv = reduce(obj) |