From: Guido van Rossum Date: Tue, 28 Jan 2003 03:51:53 +0000 (+0000) Subject: Rename 'bin' arg to 'proto'. Keep the default at 0 lest the tests X-Git-Tag: v2.3c1~2249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d32bb170883dfbeec87e59135a102f93c97fcaf;p=python Rename 'bin' arg to 'proto'. Keep the default at 0 lest the tests change in meaning. --- 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()