]> granicus.if.org Git - python/commitdiff
Rename 'bin' arg to 'proto'. Keep the default at 0 lest the tests
authorGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 03:51:53 +0000 (03:51 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 Jan 2003 03:51:53 +0000 (03:51 +0000)
change in meaning.

Lib/test/test_pickle.py

index d61f29ba0edadb4295cb0c68a2d8b34c99d821c8..24052b5a1339828b8fc7f4412aff118345b1a50d 100644 (file)
@@ -18,9 +18,9 @@ class PicklerTests(AbstractPickleTests):
 
     error = KeyError
 
-    def dumps(self, arg, bin=0):
+    def dumps(self, arg, proto=0):
         f = StringIO()
-        p = pickle.Pickler(f, bin)
+        p = pickle.Pickler(f, proto)
         p.dump(arg)
         f.seek(0)
         return f.read()
@@ -32,12 +32,12 @@ class PicklerTests(AbstractPickleTests):
 
 class PersPicklerTests(AbstractPersistentPicklerTests):
 
-    def dumps(self, arg, bin=0):
+    def dumps(self, arg, proto=0):
         class PersPickler(pickle.Pickler):
             def persistent_id(subself, obj):
                 return self.persistent_id(obj)
         f = StringIO()
-        p = PersPickler(f, bin)
+        p = PersPickler(f, proto)
         p.dump(arg)
         f.seek(0)
         return f.read()