summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2020-05-25 14:46:26 +0200
committerErik Skultety <eskultet@redhat.com>2020-05-26 08:51:15 +0200
commit1da460bff0e83ababf393721eab881ea1d886fe7 (patch)
treebe86bdd9a29dd03d950a629f3b52695b24a9a9b9 /scripts
parent3944f6855b9d4df73754bb6e5c8023d77399879b (diff)
downloadlibvirt-1da460bff0e83ababf393721eab881ea1d886fe7.tar.gz
scripts: Fix E741 that pycodesyle is pointing out during syntax-check
With newer pycodestyle 2.6.0 (which is part of flake8-3.8.2) reports the following pep violation during syntax-check: ../scripts/check-remote-protocol.py:95:9: E741 ambiguous variable name 'l' for l in err.strip().split("\n") On all the distros we test on, this hasn't occurred yet, but with the future update of flake8 it likely would. The fix is easy, just name the variable appropriately. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check-remote-protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-remote-protocol.py b/scripts/check-remote-protocol.py
index 25caa19563..cf9e3f84a1 100644
--- a/scripts/check-remote-protocol.py
+++ b/scripts/check-remote-protocol.py
@@ -92,8 +92,8 @@ if out == "" or pdwtagsproc.returncode != 0:
else:
print("WARNING: exit code %d, pdwtags appears broken:" %
pdwtagsproc.returncode, file=sys.stderr)
- for l in err.strip().split("\n"):
- print("WARNING: %s" % l, file=sys.stderr)
+ for line in err.strip().split("\n"):
+ print("WARNING: %s" % line, file=sys.stderr)
print("WARNING: skipping the remote protocol test", file=sys.stderr)
sys.exit(0)