[Python-checkins] python/dist/src/Lib copy_reg.py,1.12,1.13
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Fri, 31 Jan 2003 18:16:39 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv14164/Lib
Modified Files:
copy_reg.py
Log Message:
Removed all uses of the out-of-favor __safe_for_unpickling__ magic
attr, and copy_reg.safe_constructors.
Index: copy_reg.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy_reg.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** copy_reg.py 31 Jan 2003 20:34:07 -0000 1.12
--- copy_reg.py 1 Feb 2003 02:16:36 -0000 1.13
***************
*** 11,15 ****
dispatch_table = {}
- safe_constructors = {}
def pickle(ob_type, pickle_function, constructor_ob=None):
--- 11,14 ----
***************
*** 27,31 ****
if not callable(object):
raise TypeError("constructors must be callable")
- safe_constructors[object] = 1
# Example: provide pickling support for complex numbers.
--- 26,29 ----
***************
*** 42,46 ****
base.__init__(obj, state)
return obj
- _reconstructor.__safe_for_unpickling__ = 1
_HEAPTYPE = 1<<9
--- 40,43 ----