]> granicus.if.org Git - python/commitdiff
Make 'bin' argument trigger DeprecationWarning
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 7 Aug 2004 16:27:24 +0000 (16:27 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 7 Aug 2004 16:27:24 +0000 (16:27 +0000)
Lib/pickle.py

index 69fc2ccaf78ef93a6de9a9e366f7dc736f6f813b..7d6825fb0b4ada158a617b8e0d840f8dae440601 100644 (file)
@@ -199,7 +199,7 @@ class Pickler:
             raise ValueError, "can't specify both 'protocol' and 'bin'"
         if bin is not None:
             warnings.warn("The 'bin' argument to Pickler() is deprecated",
-                          PendingDeprecationWarning)
+                          DeprecationWarning)
             protocol = bin
         if protocol is None:
             protocol = 0