mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
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>
This commit is contained in:
parent
3944f6855b
commit
1da460bff0
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user