mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +00:00
Silly python 2.5 binary is for kids
This commit is contained in:
parent
d29f822b10
commit
f333b22ba6
1 changed files with 3 additions and 1 deletions
|
|
@ -159,7 +159,9 @@ def install_hook():
|
|||
with open(vcs, 'w+') as fd:
|
||||
fd.write(git_hook_file)
|
||||
# 0b111100100 == rwxr--r--
|
||||
os.chmod(vcs, 0b111100100)
|
||||
# Python 2.5 doesn't support 0b syntax so note that the above binary
|
||||
# value is equilvanet to 484 in decimal
|
||||
os.chmod(vcs, 484)
|
||||
elif 'hg' in vcs:
|
||||
_install_hg_hook(vcs)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue