Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34c3a15

Browse files
committed
unrelated cleanup
1 parent 49cf490 commit 34c3a15

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pre_commit/util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ def resource_text(filename: str) -> str:
6262

6363
def make_executable(filename: str) -> None:
6464
original_mode = os.stat(filename).st_mode
65-
os.chmod(
66-
filename, original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH,
67-
)
65+
new_mode = original_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
66+
os.chmod(filename, new_mode)
6867

6968

7069
class CalledProcessError(RuntimeError):

0 commit comments

Comments
 (0)