summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 5837884..d24786a 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -862,6 +862,10 @@ class Unpickler:
"unpickling" % callable
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:
value = apply(callable, arg_tup)