summaryrefslogtreecommitdiff
path: root/pyflakes/api.py
diff options
context:
space:
mode:
authorSteven Myint <git@stevenmyint.com>2017-06-02 18:49:14 -0700
committerSteven Myint <git@stevenmyint.com>2017-06-02 18:49:14 -0700
commitb68150a5abd4d03ef9206aafabed5bb8ee4eb3fa (patch)
tree1ef63130f9bd6e6a143ee962912ed5a5e486c420 /pyflakes/api.py
parente71a72fc7aab8938b2ec2be64a850f6ab6251e53 (diff)
downloadpyflakes-shebang.tar.gz
Detect `pythonw` in shebangshebang
Also add more tests. This addresses: https://github.com/PyCQA/pyflakes/issues/149#issuecomment-305881232
Diffstat (limited to 'pyflakes/api.py')
-rw-r--r--pyflakes/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyflakes/api.py b/pyflakes/api.py
index e30f920..49ee38d 100644
--- a/pyflakes/api.py
+++ b/pyflakes/api.py
@@ -14,7 +14,7 @@ from pyflakes import reporter as modReporter
__all__ = ['check', 'checkPath', 'checkRecursive', 'iterSourceCode', 'main']
-PYTHON_SHEBANG_REGEX = re.compile(br'^#!.*\bpython[23]?\b\s*$')
+PYTHON_SHEBANG_REGEX = re.compile(br'^#!.*\bpython[23w]?\b\s*$')
def check(codeString, filename, reporter=None):