aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps/cli.py
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2021-04-03 17:55:32 +0100
committerAdam Spiers <git@adamspiers.org>2021-04-03 17:59:37 +0100
commit1f6c7f8d574ebe7f8f321fa52876c8692925422d (patch)
treeeceebd5c4c3f850f411664c2386a24805a836123 /git_deps/cli.py
parent7c7553151dda8f9abd4c1dc9f0aa8a4c05f65d9a (diff)
downloadgit-deps-1f6c7f8d574ebe7f8f321fa52876c8692925422d.tar.gz
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.
Diffstat (limited to 'git_deps/cli.py')
-rwxr-xr-xgit_deps/cli.py2
1 files changed, 1 insertions, 1 deletions
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: