Skip to content

Commit

Permalink
Fix original_stdout function
Browse files Browse the repository at this point in the history
  • Loading branch information
tchalupnik committed Sep 25, 2024
1 parent c9c4459 commit f43014b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompt_toolkit/patch_stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def flush(self) -> None:

@property
def original_stdout(self) -> TextIO | None:
return None # self._output.stdout or sys.__stdout__
return self._output.stdout or sys.__stdout__

# Attributes for compatibility with sys.__stdout__:

Expand Down

0 comments on commit f43014b

Please sign in to comment.