diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-11 08:25:28 (GMT) |
commit | 9510e4a9f8503421c9f589e99e697aa5f3b89b69 (patch) | |
tree | 59e7f4f21d2c0902316f91b00d98e0e8d4b6c4aa /Lib/pickle.py | |
parent | f602c71b077de965693c62d65d0e261bd964fbda (diff) | |
download | cpython-9510e4a9f8503421c9f589e99e697aa5f3b89b69.zip cpython-9510e4a9f8503421c9f589e99e697aa5f3b89b69.tar.gz cpython-9510e4a9f8503421c9f589e99e697aa5f3b89b69.tar.bz2 |
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 02a1b1d..1e91eef 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -27,8 +27,8 @@ Misc variables: __version__ = "$Revision$" # Code version from types import * -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 @@ -295,7 +295,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) |