diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-07 15:27:32 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-07 15:27:32 -0500 |
commit | 95ed8490093efaaa119f3227894481c4a0c05599 (patch) | |
tree | 48a5af4619076e9d8367e7213ca557aa62fed69a | |
parent | 6cb59d685e635a72db2230d75b61aed99ac86b29 (diff) | |
download | pep8-95ed8490093efaaa119f3227894481c4a0c05599.tar.gz |
Remove unused imports and assignments
Neither the warnings modules, nor the two local assignments in
pycodestyle's newest check were being used. This removes them and
fixes pyflakes errors raised as a result.
-rwxr-xr-x | pycodestyle.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index a5141f2..b5f6ef1 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -55,7 +55,6 @@ import re import sys import time import tokenize -import warnings from fnmatch import fnmatch from optparse import OptionParser @@ -1203,10 +1202,8 @@ def ambiguous_identifier(logical_line, tokens): yield start, "E743 ambiguous function definition '%s'" % text if ident: yield pos, "E741 ambiguous variable name '%s'" % ident - prev_type = token_type prev_text = text prev_start = start - prev_end = end def python_3000_has_key(logical_line, noqa): |