From a46bf7dc2af111ae4a663d61ed06dc90ddfb8068 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sat, 15 Feb 2020 12:45:53 +0900 Subject: flake8: Suppress "F821 undefined name" inline for Python 2 names All of the instances of this are related to Python 2 names that don't exist in Python 3, and the warnings are raised when running flake8 on Python 3. All of these will go away once we completely remove support for Python 2, so just suppress them inline. We don't globally suppress the check so that we will still see legitimate errors if/when they occur in new code. Change-Id: Iccf955f50abfc9f83b371fc0af6cceb51037456f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255039 Tested-by: David Pursehouse Reviewed-by: Mike Frysinger --- subcmds/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index bc373b3e..ba75a53e 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -27,7 +27,7 @@ from project import RepoHook from pyversion import is_python3 if not is_python3(): - input = raw_input + input = raw_input # noqa: F821 else: unicode = str -- cgit v1.2.3-54-g00ecf