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

Method _read_defaults

Lib/configparser.py:1275–1286  ·  view source on GitHub ↗

Reads the defaults passed in the initializer, implicitly converting values to strings like the rest of the API. Does not perform interpolation for backwards compatibility.

(self, defaults)

Source from the content-addressed store, hash-verified

1273 super().add_section(section)
1274
1275 def _read_defaults(self, defaults):
1276 """Reads the defaults passed in the initializer, implicitly converting
1277 values to strings like the rest of the API.
1278
1279 Does not perform interpolation for backwards compatibility.
1280 """
1281 try:
1282 hold_interpolation = self._interpolation
1283 self._interpolation = Interpolation()
1284 self.read_dict({self.default_section: defaults})
1285 finally:
1286 self._interpolation = hold_interpolation
1287
1288
1289class SectionProxy(MutableMapping):

Callers

nothing calls this directly

Calls 2

InterpolationClass · 0.85
read_dictMethod · 0.80

Tested by

no test coverage detected