summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pickle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-28 03:51:53 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-28 03:51:53 (GMT)
commit9d32bb170883dfbeec87e59135a102f93c97fcaf (patch)
treedbf2123e326111602487927534eb56e471bb73f4 /Lib/test/test_pickle.py
parent3b769835cac554a947327facc9458a23069d701c (diff)
downloadcpython-9d32bb170883dfbeec87e59135a102f93c97fcaf.zip
cpython-9d32bb170883dfbeec87e59135a102f93c97fcaf.tar.gz
cpython-9d32bb170883dfbeec87e59135a102f93c97fcaf.tar.bz2
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 d61f29b..24052b5 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()