minor updates
authorTony Mack <tmack@cs.princeton.edu>
Wed, 4 Feb 2009 22:46:25 +0000 (22:46 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 4 Feb 2009 22:46:25 +0000 (22:46 +0000)
geni/util/storage.py

index 9dd094e..50f1358 100644 (file)
@@ -21,9 +21,7 @@ class SimpleStorage(dict):
             raise IOError, '%s exists but is not a file. please remove it and try again' \
                            % self.db_filename
         else:
-            db_file = open(self.db_filename, 'w')
-            db_file.write('{}')
-            db_file.close()
+            self.write()
  
     def write(self):
         db_file = open(self.db_filename, 'w')