Lines Matching refs:line
45 When `empty_lines_in_values` is False (default: True), each empty line
204 message.append(" [line {0:2d}]".format(lineno))
230 message.append(" [line {0:2d}]".format(lineno))
336 def append(self, lineno, line):
337 self.errors.append((lineno, line))
338 self.message += '\n\t[line %2d]: %s' % (lineno, line)
344 def __init__(self, filename, lineno, line):
347 'File contains no section headers.\nfile: %r, line: %d\n%r' %
348 (filename, lineno, line))
351 self.line = line
352 self.args = (filename, lineno, line)
605 # Compiled regular expression for matching leading whitespace in a line
724 The `f` argument must be iterable, returning one line at a time.
1021 than the first line of the value. Depending on the parser's mode, blank
1026 in an otherwise empty line or may be entered in lines holding values or
1036 for lineno, line in enumerate(fp, start=1):
1043 index = line.find(prefix, index+1)
1047 if index == 0 or (index > 0 and line[index-1].isspace()):
1050 # strip full line comments
1052 if line.strip().startswith(prefix):
1057 value = line[:comment_start].strip()
1060 # add empty line to the value, but only if there was no
1061 # comment on the line
1068 # empty line marks end of value
1071 # continuation line?
1072 first_nonspace = self.NONSPACECRE.search(line)
1097 # So sections can't start with a continuation line
1101 raise MissingSectionHeaderError(fpname, lineno, line)
1102 # an option line?
1108 e = self._handle_error(e, fpname, lineno, line)
1128 e = self._handle_error(e, fpname, lineno, line)
1152 def _handle_error(self, exc, fpname, lineno, line):
1155 exc.append(lineno, repr(line))