Skip to content

Commit ae6ff79

Browse files
authored
flake8 config: remove line that exists only for Python-2 checking (#7570)
1 parent da3e69d commit ae6ff79

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,4 @@ per-file-ignores =
3737
stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027
3838
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y034
3939

40-
# We are checking with Python 3 but many of the stubs are Python 2 stubs.
41-
builtins = buffer,file,long,raw_input,unicode,xrange
4240
exclude = .venv*,.git,*_pb2.pyi,stdlib/@python2/*

stubs/humanfriendly/humanfriendly/compat.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else:
1111
unicode = unicode
1212
unichr = unichr
1313
basestring = basestring
14-
interactive_prompt = raw_input
14+
interactive_prompt = raw_input # noqa: F821 # exists as a builtin in Python 2, but not in Python 3
1515
from StringIO import StringIO as StringIO
1616

1717
from HTMLParser import HTMLParser as HTMLParser

0 commit comments

Comments
 (0)