mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
unrelated cleanup
This commit is contained in:
parent
49cf490697
commit
34c3a1580a
1 changed files with 2 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue