summaryrefslogtreecommitdiff
path: root/Lib/shelve.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-12-08 21:25:00 +0000
committerSkip Montanaro <skip@pobox.com>2002-12-08 21:25:00 +0000
commit123dc8ef722023da949798aec8a3ee8e23a4f6a5 (patch)
tree6884651e25a7acf970d1260a98eaec32ba11f8d2 /Lib/shelve.py
parent3bf99e3e876cb367cff34c5b9d659361b5ca9525 (diff)
downloadcpython-git-123dc8ef722023da949798aec8a3ee8e23a4f6a5.tar.gz
self.binary -> self._binary to remove it from the public interface -
suggestion by Raymond Hettinger.
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r--Lib/shelve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py
index e262d79ec3..9477c5dedb 100644
--- 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()