From 1f6c7f8d574ebe7f8f321fa52876c8692925422d Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 3 Apr 2021 17:55:32 +0100 Subject: Use line-buffering on output (#87) Use explicit line buffering of STDOUT. Originally buffering was disabled by #81 to allow better interaction with tee(1), but this breaks Python 3 as per #87. So use line buffering instead. Closes #87 and #93. --- git_deps/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_deps') diff --git a/git_deps/cli.py b/git_deps/cli.py index 9e8b0ab..9f3db04 100755 --- a/git_deps/cli.py +++ b/git_deps/cli.py @@ -135,7 +135,7 @@ def main(args): if options.serve: serve(options) else: - sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 1) try: cli(options, args) except InvalidCommitish as e: -- cgit