Raised when a key-value pair is found before any section header.
| 335 | |
| 336 | |
| 337 | class MissingSectionHeaderError(ParsingError): |
| 338 | """Raised when a key-value pair is found before any section header.""" |
| 339 | |
| 340 | def __init__(self, filename, lineno, line): |
| 341 | Error.__init__( |
| 342 | self, |
| 343 | 'File contains no section headers.\nfile: %r, line: %d\n%r' % |
| 344 | (filename, lineno, line)) |
| 345 | self.source = filename |
| 346 | self.lineno = lineno |
| 347 | self.line = line |
| 348 | self.args = (filename, lineno, line) |
| 349 | |
| 350 | |
| 351 | class MultilineContinuationError(ParsingError): |
no outgoing calls
no test coverage detected
searching dependent graphs…