From a7bec363af3e7b680455bc81dea06f4847808418 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Tue, 14 May 2019 13:49:20 +1000 Subject: [PATCH] Fix shebangs not being used in python tests. --- eris/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eris/tools.py b/eris/tools.py index 9fff78f..fbb4629 100644 --- a/eris/tools.py +++ b/eris/tools.py @@ -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):