def load(self):
if os.path.exists(self.db_filename) and os.path.isfile(self.db_filename):
db_file = open(self.db_filename, 'r')
dict.__init__(self, eval(db_file.read()))
elif os.path.exists(self.db_filename) and not os.path.isfile(self.db_filename):
def load(self):
if os.path.exists(self.db_filename) and os.path.isfile(self.db_filename):
db_file = open(self.db_filename, 'r')
dict.__init__(self, eval(db_file.read()))
elif os.path.exists(self.db_filename) and not os.path.isfile(self.db_filename):