Skip to content

Commit 92be336

Browse files
committed
Rename for-loop variable name to avoid conflict
Local `config` was hidding global import `config`, used later in the function.
1 parent b103dcb commit 92be336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmuxp/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ def command_load(args):
400400

401401
if isinstance(args.config, list):
402402
# Load each configuration but the last to the background
403-
for config in args.config[:-1]:
403+
for cfg in args.config[:-1]:
404404
new_args = argparse.Namespace(**args.__dict__)
405405
new_args.detached = True
406-
new_args.config = config
406+
new_args.config = cfg
407407
command_load(new_args)
408408

409409
# The last one will be detached if specified on the command line

0 commit comments

Comments
 (0)