From ae6ff79c0e14cd054bf07374e7091a098a46cf1f Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 1 Apr 2022 07:07:16 +0100 Subject: [PATCH] flake8 config: remove line that exists only for Python-2 checking (#7570) --- .flake8 | 2 -- stubs/humanfriendly/humanfriendly/compat.pyi | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index b933441d8..44ce3a0d2 100644 --- a/.flake8 +++ b/.flake8 @@ -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/* diff --git a/stubs/humanfriendly/humanfriendly/compat.pyi b/stubs/humanfriendly/humanfriendly/compat.pyi index 431dc3447..8a9f61260 100644 --- a/stubs/humanfriendly/humanfriendly/compat.pyi +++ b/stubs/humanfriendly/humanfriendly/compat.pyi @@ -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