From e581dec7b3aedf782f8dcca6fb524d523e7ab564 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 31 Mar 2022 23:49:53 +0100 Subject: [PATCH 1/2] flake8 config: remove line that exists only for Python-2 checking flake8 no longer runs on the Python-2 stdlib in CI --- .flake8 | 2 -- 1 file changed, 2 deletions(-) diff --git a/.flake8 b/.flake8 index b933441d8031..44ce3a0d27b6 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/* From 207cefb0fef09ef9705e73e71f424e27cfcf2f7c Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 31 Mar 2022 23:54:32 +0100 Subject: [PATCH 2/2] Update compat.pyi --- stubs/humanfriendly/humanfriendly/compat.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/humanfriendly/humanfriendly/compat.pyi b/stubs/humanfriendly/humanfriendly/compat.pyi index 431dc344708c..8a9f61260e81 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