From: Tony Mack Date: Wed, 4 Feb 2009 22:46:25 +0000 (+0000) Subject: minor updates X-Git-Tag: sfa-0.9-0@14641~668 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8ccfb0feb0d87eef63e98182cc6e514c87c02121;p=sfa.git minor updates --- diff --git a/geni/util/storage.py b/geni/util/storage.py index 9dd094ea..50f13581 100644 --- a/geni/util/storage.py +++ b/geni/util/storage.py @@ -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')