MCPcopy Index your code
hub / github.com/python/cpython / MissingSectionHeaderError

Class MissingSectionHeaderError

Lib/configparser.py:337–348  ·  view source on GitHub ↗

Raised when a key-value pair is found before any section header.

Source from the content-addressed store, hash-verified

335
336
337class 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
351class MultilineContinuationError(ParsingError):

Callers 1

_handle_restMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…