projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bf99e3
)
self.binary -> self._binary to remove it from the public interface -
author
Skip Montanaro
<skip@pobox.com>
Sun, 8 Dec 2002 21:25:00 +0000
(21:25 +0000)
committer
Skip Montanaro
<skip@pobox.com>
Sun, 8 Dec 2002 21:25:00 +0000
(21:25 +0000)
suggestion by Raymond Hettinger.
Lib/shelve.py
patch
|
blob
|
history
diff --git
a/Lib/shelve.py
b/Lib/shelve.py
index e262d79ec35f6befdc3c0accbe2a74aaeccc35c6..9477c5dedbcf99b20b30a1448e836dacc419dfab 100644
(file)
--- a/
Lib/shelve.py
+++ b/
Lib/shelve.py
@@
-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()