aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2020-07-01 14:46:11 +0200
committerGuido Günther <agx@sigxcpu.org>2020-07-01 14:46:11 +0200
commit0bc42b4b0312fc965881409e619093cd0fb077f9 (patch)
tree5ce665009fe0fd612bd6c7ba4437963cea308063
parent305a4ad00ee50e63a8c6dab5c79600bd17a66548 (diff)
Make flake8 E741 happy
Closes: #964040
-rw-r--r--gbp/git/repository.py4
-rw-r--r--gbp/patch_series.py2
-rwxr-xr-xgbp/scripts/pq.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index dfc8e556..e21b19ec 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -515,7 +515,7 @@ class GitRepository(object):
if not out: # both branches have the same commits
return True, True
- for line in (l.decode() for l in out):
+ for line in (li.decode() for li in out):
if line.startswith("<"):
has_local = True
elif line.startswith(">"):
@@ -597,7 +597,7 @@ class GitRepository(object):
args.add(commit)
out, ret = self._git_getoutput('branch', args.args)
- for line in [l.decode() for l in out]:
+ for line in [li.decode() for li in out]:
# remove prefix '*' for current branch before comparing
line = line.replace('*', '')
if line.strip() == branch:
diff --git a/gbp/patch_series.py b/gbp/patch_series.py
index 15af2884..4ce0327f 100644
--- a/gbp/patch_series.py
+++ b/gbp/patch_series.py
@@ -105,7 +105,7 @@ class Patch(object):
self.info[header] = value.strip()
# Body
try:
- self.long_desc = "".join([l.decode("utf-8", "backslashreplace") for l in body])
+ self.long_desc = "".join([li.decode("utf-8", "backslashreplace") for li in body])
except (IOError, UnicodeDecodeError) as msg:
raise GbpError("Failed to read patch header of '%s': %s" %
(self.path, msg))
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py
index 794617a4..7ec5e245 100755
--- a/gbp/scripts/pq.py
+++ b/gbp/scripts/pq.py
@@ -120,7 +120,7 @@ def compare_series(old, new):
([], [])
"""
added = set(new).difference(old)
- removed = [l for l in set(old).difference(new) if not l.startswith('#')]
+ removed = [li for li in set(old).difference(new) if not li.startswith('#')]
return (list(added), removed)