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/idlelib | |
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/idlelib')
-rw-r--r-- | Lib/idlelib/rpc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 3bac6a3..52a2eaf 100644 --- a/Lib/idlelib/rpc.py +++ b/Lib/idlelib/rpc.py @@ -37,7 +37,7 @@ import cPickle as pickle import threading import Queue import traceback -import copy_reg +import copyreg import types import marshal @@ -60,8 +60,8 @@ def pickle_code(co): # assert isinstance(fn, type.FunctionType) # return repr(fn) -copy_reg.pickle(types.CodeType, pickle_code, unpickle_code) -# copy_reg.pickle(types.FunctionType, pickle_function, unpickle_function) +copyreg.pickle(types.CodeType, pickle_code, unpickle_code) +# copyreg.pickle(types.FunctionType, pickle_function, unpickle_function) BUFSIZE = 8*1024 LOCALHOST = '127.0.0.1' |