diff options
author | Adam Spiers <git@adamspiers.org> | 2021-04-03 17:55:32 +0100 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2021-04-03 17:59:37 +0100 |
commit | 1f6c7f8d574ebe7f8f321fa52876c8692925422d (patch) | |
tree | eceebd5c4c3f850f411664c2386a24805a836123 /git_deps | |
parent | 7c7553151dda8f9abd4c1dc9f0aa8a4c05f65d9a (diff) | |
download | git-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')
-rwxr-xr-x | git_deps/cli.py | 2 |
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: |