Skip to content

Commit

Permalink
Fix complaints from flake8 3.8.3
Browse files Browse the repository at this point in the history
flake8 3.8.3 complains about:

```
bdebstrap:424:32: E741 ambiguous variable name 'l'
bdebstrap:426:34: E741 ambiguous variable name 'l'
bdebstrap:428:37: E741 ambiguous variable name 'l'
```

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Jun 18, 2020
1 parent d15a4e1 commit 7edfabf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bdebstrap
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,17 @@ def parse_args(args): # pylint: disable=too-many-statements
args.env = env_dict

if args.packages:
args.packages = [p for l in args.packages for p in re.split(",| ", l) if p]
args.packages = [
p for packages_list in args.packages for p in re.split(",| ", packages_list) if p
]
if args.components:
args.components = [c for l in args.components for c in re.split(",| ", l) if c]
args.components = [
c for component_list in args.components for c in re.split(",| ", component_list) if c
]
if args.architectures:
args.architectures = [a for l in args.architectures for a in re.split(",| ", l) if a]
args.architectures = [
a for arch_list in args.architectures for a in re.split(",| ", arch_list) if a
]
args.mirrors = [
m.strip() for mirror_list in args.mirrors for m in mirror_list.split(",") if m.strip()
]
Expand Down

0 comments on commit 7edfabf

Please sign in to comment.