From 95ed8490093efaaa119f3227894481c4a0c05599 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 7 Jun 2016 15:27:32 -0500 Subject: 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. --- pycodestyle.py | 3 --- 1 file changed, 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): -- cgit v1.2.1