From e4b0b0ff2b13ccb112f086ddbdd4572089f3e1e1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 23 Apr 2017 23:17:58 +0300 Subject: [PATCH] Fix Flad_Conf: it's itself a dict --- m_lib/flad/fladc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m_lib/flad/fladc.py b/m_lib/flad/fladc.py index af8ba37..6f03478 100644 --- a/m_lib/flad/fladc.py +++ b/m_lib/flad/fladc.py @@ -40,7 +40,7 @@ class Flad_Conf(dict): if len(db) != 1: raise error("incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db))) - self.data = db[0] + self.update(db[0]) def load_from_file(self, f): @@ -50,12 +50,12 @@ class Flad_Conf(dict): if len(db) != 1: raise error("incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db))) - self.data = db[0] + self.update(db[0]) def store_to_file(self, f): db = self.__make_db() - db.append(self.data) + db.append(self) db.store_to_file(f) -- 2.39.5