Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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