diff src/memory/persistent.py @ 592:e5a875a3311b

Fix pep8 support in src/memory.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:35 +0100
parents beaf6bec2fcd
children 84a6e83157c2
line wrap: on
line diff
--- a/src/memory/persistent.py	Fri Jan 18 17:55:35 2013 +0100
+++ b/src/memory/persistent.py	Fri Jan 18 17:55:35 2013 +0100
@@ -21,11 +21,13 @@
 
 from logging import debug, info, warning, error
 
+
 class MemoryNotInitializedError(Exception):
     pass
 
+
 class PersistentDict(object):
-    """A dictionary which save persistently each value assigned
+    r"""A dictionary which save persistently each value assigned
     /!\ be careful, each assignment means a database write
     /!\ Memory must be initialised before loading/setting value with instances of this class"""
     storage = None
@@ -81,9 +83,6 @@
     def __nonzero__(self):
         return self._cache.__len__()
 
-    def __unicode__(self):
-        return self._cache.__unicode__()
-
     def __contains__(self, key):
         return self._cache.__contains__(key)
 
@@ -146,4 +145,3 @@
         if not self.profile:
             return self.storage.setGenPrivateBinary(self.namespace, name, self._cache[name])
         return self.storage.setIndPrivateBinary(self.namespace, name, self._cache[name], self.profile)
-