summaryrefslogtreecommitdiff
path: root/Lib/test/test_pickle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-28 03:51:53 +0000
committerGuido van Rossum <guido@python.org>2003-01-28 03:51:53 +0000
commit1207d637c7531620b98ffa98e5ec72b4e8a1589d (patch)
tree65d3aeeb9e8ffcdf0c3200bd0f95e99e5cdb0edb /Lib/test/test_pickle.py
parent0cf979b506dd2147664854675d49cf0943c6b318 (diff)
downloadcpython-1207d637c7531620b98ffa98e5ec72b4e8a1589d.tar.gz
Rename 'bin' arg to 'proto'. Keep the default at 0 lest the tests
change in meaning.
Diffstat (limited to 'Lib/test/test_pickle.py')
-rw-r--r--Lib/test/test_pickle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py
index d61f29ba0e..24052b5a13 100644
--- a/Lib/test/test_pickle.py
+++ b/Lib/test/test_pickle.py
@@ -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()