Commit 8d5d0c1b authored by Vincent A's avatar Vincent A

modules: fix some "ambiguous variable name 'l'" flakes E741

parent b8ec6e42
......@@ -78,7 +78,7 @@ class BNPVirtKeyboard(MappedVirtKeyboard):
else:
s += "O"
s += "\n"
s = '\n'.join([l for l in s.splitlines() if l.strip()])
s = '\n'.join(line for line in s.splitlines() if line.strip())
return hashlib.md5(s).hexdigest()
......
......@@ -137,7 +137,7 @@ class ConnectionThresholdPage(HTMLPage):
new_passwords = []
for i in range(self.NOT_REUSABLE_PASSWORDS_COUNT):
new_pass = ''.join([str((int(l) + i + 1) % 10) for l in self.browser.password])
new_pass = ''.join(str((int(char) + i + 1) % 10) for char in self.browser.password)
if not self.looks_legit(new_pass):
self.logger.warning('One of rotating password is not legit')
raise BrowserPasswordExpired(msg)
......
......@@ -1130,7 +1130,7 @@ class IndexPage(LoggedPage, BasePage):
t.date = Date(dayfirst=True).filter(m.group(1))
if t.date is NotAvailable:
continue
if any(l in t.raw.lower() for l in ('tot dif', 'fac cb')):
if any(pattern in t.raw.lower() for pattern in ('tot dif', 'fac cb')):
t._link = Link(tr.xpath('./td/a'))(self.doc)
# "Cb" for new site, "CB" for old one
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment