From a4b0793bf79e1649f8382e0ee66d8b9932e553e0 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Thu, 16 Jun 2016 06:26:02 -0500 Subject: [PATCH] Use correct stat module constant Previously we were using stat.IROTH instead of stat.S_IROTH. I must have been thinking about retirement. ;-) --- flake8/main/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/main/git.py b/flake8/main/git.py index 7e55321..3160a26 100644 --- a/flake8/main/git.py +++ b/flake8/main/git.py @@ -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