Commit dc78b2e7 authored by Skip Montanaro's avatar Skip Montanaro

self.binary -> self._binary to remove it from the public interface -

suggestion by Raymond Hettinger.
parent c6726448
......@@ -53,7 +53,7 @@ class Shelf(UserDict.DictMixin):
def __init__(self, dict, binary=False):
self.dict = dict
self.binary = binary
self._binary = binary
def keys(self):
return self.dict.keys()
......@@ -78,7 +78,7 @@ class Shelf(UserDict.DictMixin):
def __setitem__(self, key, value):
f = StringIO()
p = Pickler(f, self.binary)
p = Pickler(f, self._binary)
p.dump(value)
self.dict[key] = f.getvalue()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment