X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fflad%2Ffladw.py;h=0acc34de0c7530697841b442dd08e6d37d96ee12;hp=c50d410367e825660e4185e97b96031af7002a10;hb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;hpb=c0a3ca4a622dadfa767404da3c366443bab0f791 diff --git a/m_lib/flad/fladw.py b/m_lib/flad/fladw.py index c50d410..0acc34d 100644 --- a/m_lib/flad/fladw.py +++ b/m_lib/flad/fladw.py @@ -33,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 @@ -72,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()