diff options
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r-- | Lib/shelve.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py index 52e471a..cc1815e 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -73,6 +73,7 @@ class _ClosedDict(collections.MutableMapping): def __repr__(self): return '<Closed Dictionary>' + class Shelf(collections.MutableMapping): """Base class for shelf implementations. @@ -88,7 +89,7 @@ class Shelf(collections.MutableMapping): self._protocol = protocol self.writeback = writeback self.cache = {} - self.keyencoding = "utf-8" + self.keyencoding = keyencoding def __iter__(self): for k in self.dict.keys(): |