diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-07 19:04:21 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-07 19:04:21 -0400 |
commit | 021ae36f61c1f17e18153b2f1435e895b88a39fc (patch) | |
tree | d2e0521d43fe908e6771d6a600acd7f46f0ae209 | |
parent | 6e6220eb36a1df77f45e6affeaa02fd114ed9fd4 (diff) | |
download | cmd2-git-021ae36f61c1f17e18153b2f1435e895b88a39fc.tar.gz |
Fixed flake8 error
-rwxr-xr-x | cmd2/cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 305c4173..f29fc517 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -449,10 +449,10 @@ class Cmd(cmd.Cmd): shortcuts=shortcuts) # Verify commands don't have invalid names (like starting with a shortcut) - for cmd in self.get_all_commands(): - valid, errmsg = self.statement_parser.is_valid_command(cmd) + for cur_cmd in self.get_all_commands(): + valid, errmsg = self.statement_parser.is_valid_command(cur_cmd) if not valid: - raise ValueError("Invalid command name {!r}: {}".format(cmd, errmsg)) + raise ValueError("Invalid command name {!r}: {}".format(cur_cmd, errmsg)) # Stores results from the last command run to enable usage of results in a Python script or interactive console # Built-in commands don't make use of this. It is purely there for user-defined commands and convenience. |