From 8ccfb0feb0d87eef63e98182cc6e514c87c02121 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 4 Feb 2009 22:46:25 +0000 Subject: [PATCH] minor updates --- geni/util/storage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') -- 2.43.0