Skip to content

Commit 95ed849

Browse files
committed
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.
1 parent 6cb59d6 commit 95ed849

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pycodestyle.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import sys
5656
import time
5757
import tokenize
58-
import warnings
5958

6059
from fnmatch import fnmatch
6160
from optparse import OptionParser
@@ -1203,10 +1202,8 @@ def ambiguous_identifier(logical_line, tokens):
12031202
yield start, "E743 ambiguous function definition '%s'" % text
12041203
if ident:
12051204
yield pos, "E741 ambiguous variable name '%s'" % ident
1206-
prev_type = token_type
12071205
prev_text = text
12081206
prev_start = start
1209-
prev_end = end
12101207

12111208

12121209
def python_3000_has_key(logical_line, noqa):

0 commit comments

Comments
 (0)