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
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()