mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
unrelated cleanup
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user