mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +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:
|
with open(vcs, 'w+') as fd:
|
||||||
fd.write(git_hook_file)
|
fd.write(git_hook_file)
|
||||||
# 0b111100100 == rwxr--r--
|
# 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:
|
elif 'hg' in vcs:
|
||||||
_install_hg_hook(vcs)
|
_install_hg_hook(vcs)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue