mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Use correct stat module constant
Previously we were using stat.IROTH instead of stat.S_IROTH. I must have been thinking about retirement. ;-)
This commit is contained in:
parent
b1f039a476
commit
a4b0793bf7
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ def install():
|
|||
# - read permissions for other people
|
||||
# The owner needs the file to be readable, writable, and executable
|
||||
# so that git can actually execute it as a hook.
|
||||
pre_commit_permissions = stat.S_IRWXU | stat.S_IRGRP | stat.IROTH
|
||||
pre_commit_permissions = stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH
|
||||
os.chmod(pre_commit_file, pre_commit_permissions)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue