summaryrefslogtreecommitdiffstats
path: root/subcmds/info.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2019-07-04 17:35:11 -0400
committerDavid Pursehouse <dpursehouse@collab.net>2019-07-11 06:26:40 +0000
commitab85fe7c535bfa97c067354d8a23e39b849f6728 (patch)
tree3de17ed8b68af5cef82eaf5553ca3de41bd7e955 /subcmds/info.py
parent4f42a9706715c9c5add46632343f7108aabcd530 (diff)
downloadgit-repo-ab85fe7c535bfa97c067354d8a23e39b849f6728.tar.gz
use print() instead of sys.stdout.write()
We're relying on sys.stdout.write() to flush its buffer which isn't guaranteed, and is not the case in Python 3. Change to use print() everywhere to be standard, and utilize the end= keyword to get the EOL semantics we need. We can't use print's flush= keyword as that's only in Python 3. Leave behind a TODO to clean it up when we can drop Python 2. Bug: https://crbug.com/gerrit/10418 Change-Id: I562128c7f1e6d154f4a6ecdf33a70fa2811dc2af Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/230392 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'subcmds/info.py')
0 files changed, 0 insertions, 0 deletions