We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
create_output
1 parent ad1a312 commit 189a8b7Copy full SHA for 189a8b7
src/prompt_toolkit/output/defaults.py
@@ -61,6 +61,8 @@ def create_output(
61
# If the patch_stdout context manager has been used, then sys.stdout is
62
# replaced by this proxy. For prompt_toolkit applications, we want to use
63
# the real stdout.
64
+ from prompt_toolkit.patch_stdout import StdoutProxy
65
+
66
while isinstance(stdout, StdoutProxy):
67
stdout = stdout.original_stdout
68
0 commit comments