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

Method reconfigure

Lib/test/test_android.py:91–97  ·  view source on GitHub ↗
(self, stream, **settings)

Source from the content-addressed store, hash-verified

89
90 @contextmanager
91 def reconfigure(self, stream, **settings):
92 original_settings = {key: getattr(stream, key, None) for key in settings.keys()}
93 stream.reconfigure(**settings)
94 try:
95 yield
96 finally:
97 stream.reconfigure(**original_settings)
98
99 def stream_context(self, stream_name, level):
100 stack = ExitStack()

Callers 3

stream_contextMethod · 0.95
test_strMethod · 0.95
setup_processFunction · 0.45

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected