Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcaa24e

Browse files
committed
Renamed "bin" arguments to "proto". Note that this test currently
fails, for reasons unrelated to this patch.
1 parent c23e019 commit dcaa24e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/test/test_cpickle.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def setUp(self):
1515

1616
class cPicklePicklerTests(AbstractPickleTests):
1717

18-
def dumps(self, arg, bin=0):
18+
def dumps(self, arg, proto=0):
1919
f = StringIO()
20-
p = cPickle.Pickler(f, bin)
20+
p = cPickle.Pickler(f, proto)
2121
p.dump(arg)
2222
f.seek(0)
2323
return f.read()
@@ -31,8 +31,8 @@ def loads(self, buf):
3131

3232
class cPickleListPicklerTests(AbstractPickleTests):
3333

34-
def dumps(self, arg, bin=0):
35-
p = cPickle.Pickler(bin)
34+
def dumps(self, arg, proto=0):
35+
p = cPickle.Pickler(proto)
3636
p.dump(arg)
3737
return p.getvalue()
3838

@@ -45,9 +45,9 @@ def loads(self, *args):
4545

4646
class cPickleFastPicklerTests(AbstractPickleTests):
4747

48-
def dumps(self, arg, bin=0):
48+
def dumps(self, arg, proto=0):
4949
f = StringIO()
50-
p = cPickle.Pickler(f, bin)
50+
p = cPickle.Pickler(f, proto)
5151
p.fast = 1
5252
p.dump(arg)
5353
f.seek(0)

0 commit comments

Comments
 (0)