unrelated cleanup

This commit is contained in:
Anthony Sottile
2020-01-12 12:11:03 -08:00
parent 49cf490697
commit 34c3a1580a

View File

@@ -62,9 +62,8 @@ def resource_text(filename: str) -> str:
def make_executable(filename: str) -> None:
original_mode = os.stat(filename).st_mode
os.chmod(
filename, original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH,
)
new_mode = original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
os.chmod(filename, new_mode)
class CalledProcessError(RuntimeError):