Commits

Anonymous committed 56b4c63

Creating objectdb file when it does not exist in memorydb

Comments (0)

Files changed (1)

rope/base/oi/memorydb.py

     def sync(self):
         if self.persist:
             persisted = self._get_persisted_file()
-            if persisted.exists():
-                output = self.opener(persisted.real_path, 'wb')
-                pickle.dump(self._files, output)
-                output.close()
+            output = self.opener(persisted.real_path, 'wb')
+            pickle.dump(self._files, output)
+            output.close()
 
 
 class FileInfo(objectdb.FileInfo):