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.
1 parent 19f5ac3 commit 61efc25Copy full SHA for 61efc25
src/click/_termui_impl.py
@@ -395,6 +395,7 @@ def get_pager_file(color=None):
395
# wrap in a text stream
396
stream = MaybeStripAnsi(stream, color=color, encoding=encoding)
397
yield stream
398
+ stream.flush()
399
400
401
@contextlib.contextmanager
@@ -458,7 +459,7 @@ def _tempfilepager(cmd, color=None):
458
459
def _nullpager(stream, color=None):
460
"""Simply print unformatted text. This is the ultimate fallback."""
461
encoding = get_best_encoding(stream)
- return stream, encoding, color
462
+ yield stream, encoding, color
463
464
465
class Editor:
0 commit comments