Make flake8 E741 happy
authorGuido Günther <agx@sigxcpu.org>
Wed, 1 Jul 2020 12:46:11 +0000 (14:46 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 1 Jul 2020 12:46:11 +0000 (14:46 +0200)
Closes: #964040
gbp/git/repository.py
gbp/patch_series.py
gbp/scripts/pq.py

index dfc8e55617f17c5ad996da352fad2a8930af7445..e21b19ece6e11466fa473ee9ac877415036cf210 100644 (file)
@@ -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:
index 15af28842de2ea4faf08f2c2f74fa19ea4ef0f42..4ce0327f15e63f0ea08f2eaa34cea069cb6a02d4 100644 (file)
@@ -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))
index 794617a48ae42feccf8fbb737cc3dd39a4aabfab..7ec5e2452486463f2e1e5b12c68d52f6558e6c69 100755 (executable)
@@ -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)