Skip to content

Commit

Permalink
flake8 config: remove line that exists only for Python-2 checking (#7570
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AlexWaygood authored Apr 1, 2022
1 parent da3e69d commit ae6ff79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ per-file-ignores =
stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027
stdlib/typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y026, Y034

# We are checking with Python 3 but many of the stubs are Python 2 stubs.
builtins = buffer,file,long,raw_input,unicode,xrange
exclude = .venv*,.git,*_pb2.pyi,stdlib/@python2/*
2 changes: 1 addition & 1 deletion stubs/humanfriendly/humanfriendly/compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else:
unicode = unicode
unichr = unichr
basestring = basestring
interactive_prompt = raw_input
interactive_prompt = raw_input # noqa: F821 # exists as a builtin in Python 2, but not in Python 3
from StringIO import StringIO as StringIO

from HTMLParser import HTMLParser as HTMLParser
Expand Down

0 comments on commit ae6ff79

Please sign in to comment.