Commits

Lynn Rees committed 5d30e1f

- fix pickling

  • Participants
  • Parent commits 6a71fd8
  • Tags 0.5.1

Comments (0)

Files changed (7)

 - drop support for versions of Python < 2.6
 - optimized pickling
 - fix issue with double pickling
-- fix dictionary size resizing with concurrent issues
+- fix dictionary size resizing with concurrent issues
+
+What's new in 0.5.1
+===================
+
+- no memoizing of optimized pickling
 
 setup(
     name='shove',
-    version='0.5.0',
+    version='0.5.1',
     description='''Common object storage frontend''',
     long_description=open('README.rst').read(),
     author='L. C. Rees',

File shove/base.py

         try:
             with open(self._key_to_file(key), 'rb') as item:
                 return self.loads(item.read())
-        except:
+        except (IOError, OSError):
             raise KeyError(key)
 
     def __setitem__(self, key, value):

File shove/tests/test_store.py

 
     def test__setitem__(self):
         self.store['max'] = 3
+        self.store['d'] = {'A': 1}, {'A': 1}
+        self.store['d'] = {'AA': 1}, {'A': 1}
+        self.store['d'] = {'AA': 1}, {'AA': 1}
         self.store.sync()
         self.assertEqual(self.store['max'], 3)
 

File test3/max

Binary file removed.

File test3/min

Binary file removed.

File test3/pow

Binary file removed.