"""
-import string
-
-
# Flad restriction error
checking_error = "flad.checking_error"
"""
Split input line to key/value pair and add the pair to dictionary
"""
- ###line = string.lstrip(line) # Do not rstrip - if empty value, this will remove space from key
+ ###line = line.lstrip() # Do not rstrip - if empty value, this will remove space from key
if line[-1] == '\n':
line = line[:-1] # Chop
def feed(self, record, line): # Method can be overriden in subclasses
if line:
if self.wait_comment:
- if string.strip(line) == '':
+ if line.strip() == '':
self.comment = self.comment + '\n'
self.wait_string = 0
return 0
- elif string.lstrip(line)[0] == '#':
+ elif line.lstrip()[0] == '#':
self.comment = self.comment + line
return 0