]> granicus.if.org Git - python/commitdiff
Renamed "bin" arguments to "proto". Note that this test currently
authorTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 22:26:28 +0000 (22:26 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 28 Jan 2003 22:26:28 +0000 (22:26 +0000)
fails, for reasons unrelated to this patch.

Lib/test/test_cpickle.py

index 0c34cda743ca8d49d1f909b911d554eb8763f699..f1700d6612be4ddfae5e3f2fe83d3a5e99d0d77e 100644 (file)
@@ -15,9 +15,9 @@ class cPickleTests(AbstractPickleTests, AbstractPickleModuleTests):
 
 class cPicklePicklerTests(AbstractPickleTests):
 
-    def dumps(self, arg, bin=0):
+    def dumps(self, arg, proto=0):
         f = StringIO()
-        p = cPickle.Pickler(f, bin)
+        p = cPickle.Pickler(f, proto)
         p.dump(arg)
         f.seek(0)
         return f.read()
@@ -31,8 +31,8 @@ class cPicklePicklerTests(AbstractPickleTests):
 
 class cPickleListPicklerTests(AbstractPickleTests):
 
-    def dumps(self, arg, bin=0):
-        p = cPickle.Pickler(bin)
+    def dumps(self, arg, proto=0):
+        p = cPickle.Pickler(proto)
         p.dump(arg)
         return p.getvalue()
 
@@ -45,9 +45,9 @@ class cPickleListPicklerTests(AbstractPickleTests):
 
 class cPickleFastPicklerTests(AbstractPickleTests):
 
-    def dumps(self, arg, bin=0):
+    def dumps(self, arg, proto=0):
         f = StringIO()
-        p = cPickle.Pickler(f, bin)
+        p = cPickle.Pickler(f, proto)
         p.fast = 1
         p.dump(arg)
         f.seek(0)