X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fflad%2Ffladc.py;h=d30aa445dca8b460b1c8b8a61fa2f29cd83fb647;hb=74e8ff73da3efcb4e78358825b0d6b610197f721;hp=3f5c3541f17c758f0f3958546c905e89acd804f7;hpb=8d79317cdc8220ff3c2192e68fc1dfc749c3ea1c;p=m_lib.git diff --git a/m_lib/flad/fladc.py b/m_lib/flad/fladc.py index 3f5c354..d30aa44 100644 --- a/m_lib/flad/fladc.py +++ b/m_lib/flad/fladc.py @@ -34,8 +34,8 @@ class Flad_Conf(dict): db = self.__make_db() db.load_file(f) - if len(db) <> 1: - raise error, "incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db)) + 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] @@ -44,8 +44,8 @@ class Flad_Conf(dict): db = self.__make_db() db.load_from_file(f) - if len(db) <> 1: - raise error, "incorrect number of records in config file `%s'; expected 1, got %d" % (str(f), len(db)) + 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]