Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Dec 28, 2020

Summary:
Noticed in the original, failed CI run of #4507 that this script ran in
Python 2, since its print() caused an extra () to be printed (since
we turned off print_function in #4503). This happens because its
shebang specifies the system’s default python and the CI job that
invokes it doesn’t set up a Python 3 virtualenv. The script still works,
since it’s effectively bicompatible, but for consistency we should still
make sure that everything runs on Python 3 only (else the tasks in #4488
are not necessarily sound).

Test Plan:
git grep bin/python only matches this line, and we have no uses of
/usr/bin/env python, either.

wchargin-branch: py3-whitespace-test

Summary:
Noticed in the original, failed CI run of #4507 that this script ran in
Python 2, since its `print()` caused an extra `()` to be printed (since
we turned off `print_function` in #4503. This happens because its
shebang specifies the system’s default `python` and the CI job that
invokes it doesn’t set up a Python 3 virtualenv. The script still works,
since it’s effectively bicompatible, but for consistency we should still
make sure that everything runs on Python 3 only (else the tasks in #4488
are not necessarily sound).

Test Plan:
`git grep bin/python` only matches this line.

wchargin-branch: py3-whitespace-test
wchargin-source: 2da3c38930b54c3881c39d2813a8686989f9430c
@wchargin wchargin merged commit 80e13e2 into master Jan 5, 2021
@wchargin wchargin deleted the wchargin-py3-whitespace-test branch January 5, 2021 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants