diff options
author | Skip Montanaro <skip.montanaro@gmail.com> | 2018-03-25 15:04:26 -0500 |
---|---|---|
committer | Steven Myint <git@stevenmyint.com> | 2018-03-25 13:04:26 -0700 |
commit | a440c2022e0c20941fda4d2d48d2e8274a837b78 (patch) | |
tree | 29f6368ee7c51a1172f1a5b413b4c80667c9384f /pyflakes/api.py | |
parent | af45b41f52ec1727c2a84777af0c2e55d6b8d912 (diff) | |
download | pyflakes-a440c2022e0c20941fda4d2d48d2e8274a837b78.tar.gz |
skip Emacs/vim backup files (#331)
* skip Emacs/vim backup files
* requested change
Diffstat (limited to 'pyflakes/api.py')
-rw-r--r-- | pyflakes/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyflakes/api.py b/pyflakes/api.py index 49ee38d..b163cb8 100644 --- a/pyflakes/api.py +++ b/pyflakes/api.py @@ -117,6 +117,10 @@ def isPythonFile(filename): if filename.endswith('.py'): return True + # Avoid obvious Emacs backup files + if filename.endswith("~"): + return False + max_bytes = 128 try: |