From: Skip Montanaro Date: Sun, 8 Dec 2002 21:25:00 +0000 (+0000) Subject: self.binary -> self._binary to remove it from the public interface - X-Git-Tag: v2.3c1~3090 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=123dc8ef722023da949798aec8a3ee8e23a4f6a5;p=thirdparty%2FPython%2Fcpython.git self.binary -> self._binary to remove it from the public interface - suggestion by Raymond Hettinger. --- diff --git a/Lib/shelve.py b/Lib/shelve.py index e262d79ec35f..9477c5dedbcf 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()