Commits

myfreeweb  committed c9f1caf

Removed tmp file, now sync works

  • Participants
  • Parent commits 964e024

Comments (0)

Files changed (1)

File sape/provider.py

     """
 
     try:
-        tmp_path = os.tmpnam()
-        db = anydbm.open(tmp_path, 'c')
+        db = anydbm.open(path, 'c')
         for key, value in mapping.iteritems():
             value = DB_DELIMITER.join(value)
             db[key] = value
         db.sync()
-        shutil.move(tmp_path, path)
     except Exception, ex:
         display_error(u'Error while saving database')