Fix shebangs not being used in python tests.

This commit is contained in:
Andrew Hamilton 2019-05-14 13:49:20 +10:00
parent c7b63d148c
commit a7bec363af

View file

@ -269,7 +269,7 @@ def python_syntax(path):
def _has_shebang_line(path):
with open(path, "rb") as file_:
return file_.read(2) == "#!"
return file_.read(2) == b"#!"
def _is_python_test_file(path):