We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49cf490 commit 34c3a15Copy full SHA for 34c3a15
1 file changed
pre_commit/util.py
@@ -62,9 +62,8 @@ def resource_text(filename: str) -> str:
62
63
def make_executable(filename: str) -> None:
64
original_mode = os.stat(filename).st_mode
65
- os.chmod(
66
- filename, original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH,
67
- )
+ new_mode = original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
+ os.chmod(filename, new_mode)
68
69
70
class CalledProcessError(RuntimeError):
0 commit comments