Fix shebangs not being used in python tests.
This commit is contained in:
parent
c7b63d148c
commit
a7bec363af
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ def python_syntax(path):
|
||||||
|
|
||||||
def _has_shebang_line(path):
|
def _has_shebang_line(path):
|
||||||
with open(path, "rb") as file_:
|
with open(path, "rb") as file_:
|
||||||
return file_.read(2) == "#!"
|
return file_.read(2) == b"#!"
|
||||||
|
|
||||||
|
|
||||||
def _is_python_test_file(path):
|
def _is_python_test_file(path):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue