mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
fix pep8 E741 ambiguous variable name 'l'
This commit is contained in:
parent
1106795583
commit
df563d339a
3 changed files with 14 additions and 14 deletions
|
|
@ -36,11 +36,11 @@ def devices():
|
|||
p = SdkToolsPopen(['adb', "devices"])
|
||||
if p.returncode != 0:
|
||||
raise FDroidException("An error occured when finding devices: %s" % p.output)
|
||||
lines = [l for l in p.output.splitlines() if not l.startswith('* ')]
|
||||
lines = [line for line in p.output.splitlines() if not line.startswith('* ')]
|
||||
if len(lines) < 3:
|
||||
return []
|
||||
lines = lines[1:-1]
|
||||
return [l.split()[0] for l in lines]
|
||||
return [line.split()[0] for line in lines]
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue