Lines Matching refs:line
106 def matchComment(self, line):
108 if line.lstrip().startswith(v):
109 return line.lstrip()[len(v):]
112 def matchEmpty(self, line):
113 if line.strip() == "":
117 def matchSection(self, line):
118 cl = "".join(line.strip().split())
127 def matchSubSection(self, line):
128 if self.matchComment(line):
131 parts = line.split(self.dassign, 1)
140 def matchSubSectionEnd(self, line):
141 if self.matchComment(line):
144 if line.strip() == self.subsectdel[1]:
189 def parseLine(self, line):
191 if self.matchEmpty(line):
194 value = self.matchComment(line)
198 parts = line.split(self.dassign, 1)
200 raise SyntaxError('Syntax Error: Unknown line format')
362 for line in f:
365 value = self.matchSection(line)
376 value = self.matchSubSection(line)
385 value = self.matchSubSectionEnd(line)
395 curopts.append(self.parseLine(line))
490 def parseLine(self, line):
496 if self.matchEmpty(line):
499 value = self.matchComment(line)
503 mo = self.OPTCRE.match(line)
505 raise SyntaxError('Syntax Error: Unknown line format')
510 raise SyntaxError('Syntax Error: Unknown line format')