summaryrefslogtreecommitdiffstats
path: root/subcmds/gitc_delete.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-15 12:45:53 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-15 04:45:16 +0000
commita46bf7dc2af111ae4a663d61ed06dc90ddfb8068 (patch)
treed460327d2cb0b93800f746934cb4f1c4d0007be9 /subcmds/gitc_delete.py
parent19a1f22cd0a06eeb1cdea8e81ce7871bd5d6d6a2 (diff)
downloadgit-repo-a46bf7dc2af111ae4a663d61ed06dc90ddfb8068.tar.gz
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 <dpursehouse@collab.net> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/gitc_delete.py')
-rw-r--r--subcmds/gitc_delete.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/gitc_delete.py b/subcmds/gitc_delete.py
index 1011276f..24d355a2 100644
--- a/subcmds/gitc_delete.py
+++ b/subcmds/gitc_delete.py
@@ -22,7 +22,7 @@ import platform_utils
22 22
23from pyversion import is_python3 23from pyversion import is_python3
24if not is_python3(): 24if not is_python3():
25 input = raw_input 25 input = raw_input # noqa: F821
26 26
27 27
28class GitcDelete(Command, GitcClientCommand): 28class GitcDelete(Command, GitcClientCommand):