]> 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 fe48b007c25b0ca65d9c3d62edd7f1f60378d435..0acc34de0c7530697841b442dd08e6d37d96ee12 100644 (file)
@@ -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()