X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fflad%2Ffladw.py;h=0acc34de0c7530697841b442dd08e6d37d96ee12;hb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;hp=fe48b007c25b0ca65d9c3d62edd7f1f60378d435;hpb=13a21366e5dbeb344656cbfd00432be176ae5cdb;p=m_lib.git diff --git a/m_lib/flad/fladw.py b/m_lib/flad/fladw.py index fe48b00..0acc34d 100644 --- a/m_lib/flad/fladw.py +++ b/m_lib/flad/fladw.py @@ -1,7 +1,5 @@ """ Flat ASCII Database to load WIN.INI-like files. - - Written by Broytman. Copyright (C) 1997-2005 PhiloSoft Design """ @@ -35,7 +33,7 @@ class Flad_WIni(flad.Flad): return match.group(1) # Signal to stop filling the record (section) and start a new one if self.first_section: - if string.strip(line) <> '': + if string.strip(line) != '': raise error, "non-empty line before 1st section" elif (string.strip(line) == '') or (string.lstrip(line)[0] == ';') : # Empty line or comment @@ -74,7 +72,7 @@ class Flad_WIni(flad.Flad): self.section = section else: - if self.first_section and (string.strip(line) <> ''): + if self.first_section and (string.strip(line) != ''): raise error, "non-empty line before 1st section" # else: line had been appended to section in __parse_line()