git-repo/subcmds
Mike Frysinger ab85fe7c53 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>
2019-07-11 06:26:40 +00:00
..
__init__.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
abandon.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
branches.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
checkout.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
cherry_pick.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
diff.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
diffmanifests.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
download.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
forall.py Remove double forall from "repo help forall" output 2019-07-08 22:42:38 +00:00
gitc_delete.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
gitc_init.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
grep.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
help.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
info.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
init.py use print() instead of sys.stdout.write() 2019-07-11 06:26:40 +00:00
list.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
manifest.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
overview.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
prune.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
rebase.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
selfupdate.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
smartsync.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
stage.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
start.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
status.py status: import print_function 2019-06-14 14:13:23 +00:00
sync.py sync: use integer division with job counts 2019-06-14 14:47:01 +00:00
upload.py use print() instead of sys.stdout.write() 2019-07-11 06:26:40 +00:00
version.py git_command: drop custom version helper 2019-07-11 01:30:18 +00:00