Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23e019 commit dcaa24eCopy full SHA for dcaa24e
1 file changed
Lib/test/test_cpickle.py
@@ -15,9 +15,9 @@ def setUp(self):
15
16
class cPicklePicklerTests(AbstractPickleTests):
17
18
- def dumps(self, arg, bin=0):
+ def dumps(self, arg, proto=0):
19
f = StringIO()
20
- p = cPickle.Pickler(f, bin)
+ p = cPickle.Pickler(f, proto)
21
p.dump(arg)
22
f.seek(0)
23
return f.read()
@@ -31,8 +31,8 @@ def loads(self, buf):
31
32
class cPickleListPicklerTests(AbstractPickleTests):
33
34
35
- p = cPickle.Pickler(bin)
+ p = cPickle.Pickler(proto)
36
37
return p.getvalue()
38
@@ -45,9 +45,9 @@ def loads(self, *args):
45
46
class cPickleFastPicklerTests(AbstractPickleTests):
47
48
49
50
51
p.fast = 1
52
53
0 commit comments