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)
| 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 | |
| 1289 | class SectionProxy(MutableMapping): |
nothing calls this directly
no test coverage detected