]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/flad/fladw.py
Replace <> with != for Py3 compatibility
[m_lib.git] / m_lib / flad / fladw.py
index c50d410367e825660e4185e97b96031af7002a10..0acc34de0c7530697841b442dd08e6d37d96ee12 100644 (file)
@@ -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()