commit | 5d553ed3983f3d8d7b94d394463a371d215b79f5 | [log] [tgz] |
---|---|---|
author | James Godfrey-Kittle <jamesgk@google.com> | Fri May 06 14:06:40 2022 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri May 06 18:48:47 2022 +0000 |
tree | 43e375da0fae437ce6179756e36a12e06d451282 | |
parent | b346e421a7fc411f72834de2c7013a8996261813 [diff] |
Fix presubmits for Python 3 Calls to "python" won't work on vanilla MacOS installs (nor many distributions of Linux), and AFAICT we're assuming it refers to python3 anyways. xreadlines was removed in Python 3, and the suggested equivalent is to use the file directly as an iterator: https://docs.python.org/2.7/library/stdtypes.html#file.xreadlines Change-Id: Iae51e3923e38ea63f857a17b9ff80e79871efee5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/537982 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: James Godfrey-Kittle <jamesgk@google.com>