From 7edfabfa9e6084522a4db9fcb6d39df9f5273fb4 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 18 Jun 2020 12:34:25 +0200 Subject: [PATCH] Fix complaints from flake8 3.8.3 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 --- bdebstrap | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bdebstrap b/bdebstrap index 338423c..cca8749 100755 --- a/bdebstrap +++ b/bdebstrap @@ -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() ]