summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2023-10-09 13:21:25 +0200
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-09 17:04:38 +0000
commit6a7f73bb9a55ab4463238af4c5096e6bf3789934 (patch)
tree6c21d19062ffffc5e2918f6dbb0c6d246abf2b17 /project.py
parent23d063bdcd1bdcaa70ac8565615764dd4313adf9 (diff)
downloadgit-repo-6a7f73bb9a55ab4463238af4c5096e6bf3789934.tar.gz
git_command: read1 needs a size in py3.6
Not setting size causes "TypeError: read1() takes exactly one argument (0 given)" in Python 3.6. In Python 3.7 onwards size defaults to -1, which means an arbitrary number of bytes will be returned. Compare https://docs.python.org/3.6/library/io.html#io.BufferedReader.read1 and https://docs.python.org/3.7/library/io.html#io.BufferedIOBase.read1 for more details. Change-Id: Ia4aaf8140ead9493ec650fac167c641569e6a9d8 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/388718 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com>
Diffstat (limited to 'project.py')
0 files changed, 0 insertions, 0 deletions