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

Method __init__

Lib/configparser.py:206–221  ·  view source on GitHub ↗
(self, section, source=None, lineno=None)

Source from the content-addressed store, hash-verified

204 """
205
206 def __init__(self, section, source=None, lineno=None):
207 msg = [repr(section), " already exists"]
208 if source is not None:
209 message = ["While reading from ", repr(source)]
210 if lineno is not None:
211 message.append(" [line {0:2d}]".format(lineno))
212 message.append(": section ")
213 message.extend(msg)
214 msg = message
215 else:
216 msg.insert(0, "Section ")
217 Error.__init__(self, "".join(msg))
218 self.section = section
219 self.source = source
220 self.lineno = lineno
221 self.args = (section, source, lineno)
222
223
224class DuplicateOptionError(Error):

Callers

nothing calls this directly

Calls 6

appendMethod · 0.45
formatMethod · 0.45
extendMethod · 0.45
insertMethod · 0.45
__init__Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected