Skip to content

Commit 59b38ff

Browse files
committed
add symmetric output flushing
1 parent 8b63968 commit 59b38ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

explcheck-wrapper/src/explcheck_wrapper/explcheck_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def format(self, record: logging.LogRecord) -> str: # noqa: D102
4646
def run(cmd: list[str], *, dry_run: bool) -> None:
4747
"""Run the command, or print it if dry_run is True."""
4848
if dry_run:
49-
print(f'{Fore.LIGHTBLACK_EX}[wrapper DRY-RUN]{Fore.RESET}', *cmd)
49+
print(f'{Fore.LIGHTBLACK_EX}[wrapper DRY-RUN]{Fore.RESET}', *cmd, flush=True)
5050
else:
5151
logger.debug('running "%s"', ' '.join(cmd))
5252
print(flush=True) # leave a blank line before explcheck's output

0 commit comments

Comments
 (0)