MCPcopy Index your code
hub / github.com/RustPython/RustPython / unbuffered

Method unbuffered

Lib/test/test_android.py:85–90  ·  view source on GitHub ↗
(self, stream)

Source from the content-addressed store, hash-verified

83
84 @contextmanager
85 def unbuffered(self, stream):
86 stream.reconfigure(write_through=True)
87 try:
88 yield
89 finally:
90 stream.reconfigure(write_through=False)
91
92 # In --verbose3 mode, sys.stdout and sys.stderr are captured, so we can't
93 # test them directly. Detect this mode and use some temporary streams with

Callers 1

test_strMethod · 0.95

Calls 1

reconfigureMethod · 0.45

Tested by

no test coverage detected