Skip to content

Commit 021ae36

Browse files
committed
Fixed flake8 error
1 parent 6e6220e commit 021ae36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2/cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,10 @@ def __init__(self, completekey: str = 'tab', stdin=None, stdout=None, *,
449449
shortcuts=shortcuts)
450450

451451
# Verify commands don't have invalid names (like starting with a shortcut)
452-
for cmd in self.get_all_commands():
453-
valid, errmsg = self.statement_parser.is_valid_command(cmd)
452+
for cur_cmd in self.get_all_commands():
453+
valid, errmsg = self.statement_parser.is_valid_command(cur_cmd)
454454
if not valid:
455-
raise ValueError("Invalid command name {!r}: {}".format(cmd, errmsg))
455+
raise ValueError("Invalid command name {!r}: {}".format(cur_cmd, errmsg))
456456

457457
# Stores results from the last command run to enable usage of results in a Python script or interactive console
458458
# Built-in commands don't make use of this. It is purely there for user-defined commands and convenience.

0 commit comments

Comments
 (0)