summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index e50a192d..f3449a8b 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3646,7 +3646,7 @@ class Cmd(cmd.Cmd):
Enable an entire category of commands
:param category: the category to enable
"""
- for cmd_name in self.disabled_commands:
+ for cmd_name in list(self.disabled_commands):
dc = self.disabled_commands[cmd_name]
cmd_category = getattr(dc.command_function, HELP_CATEGORY, None)
if cmd_category is not None and cmd_category == category: