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

Method apply_config

Lib/test/test_logging.py:1586–1588  ·  view source on GitHub ↗
(self, conf, **kwargs)

Source from the content-addressed store, hash-verified

1584 """
1585
1586 def apply_config(self, conf, **kwargs):
1587 file = io.StringIO(textwrap.dedent(conf))
1588 logging.config.fileConfig(file, encoding="utf-8", **kwargs)
1589
1590 def test_config0_ok(self):
1591 # A simple config file which overrides the default settings.

Callers 8

test_config0_okMethod · 0.95
test_config1_okMethod · 0.95
test_config4_okMethod · 0.95
test_config7_okMethod · 0.95
test_config8_okMethod · 0.95
test_config9_okMethod · 0.95
test_logger_disablingMethod · 0.95

Calls 1

dedentMethod · 0.45

Tested by

no test coverage detected