[Python-checkins] python/dist/src/Lib pickle.py,1.61,1.62
rhettinger@sourceforge.net
rhettinger@sourceforge.net
2002年5月21日 10:22:05 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv6989/Lib
Modified Files:
pickle.py
Log Message:
Patch 533291. Deprecate None return form of __reduce__.
Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** pickle.py 1 May 2002 20:33:53 -0000 1.61
--- pickle.py 21 May 2002 17:22:02 -0000 1.62
***************
*** 863,866 ****
--- 863,870 ----
if arg_tup is None:
+ import warnings
+ warnings.warn("The None return argument form of __reduce__ is "
+ "deprecated. Return a tuple of arguments instead.",
+ DeprecationWarning)
value = callable.__basicnew__()
else: