From f333b22ba609138533164d4680bc668fc6dfbf62 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sun, 24 Mar 2013 16:40:20 -0400 Subject: [PATCH] Silly python 2.5 binary is for kids --- flake8/hooks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake8/hooks.py b/flake8/hooks.py index b42954f..dd8fb54 100644 --- a/flake8/hooks.py +++ b/flake8/hooks.py @@ -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: