summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-01 19:33:04 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-01 19:33:04 -0400
commitff9d885206d5a39b7d4eeab676fc957840405681 (patch)
tree123f0c8c3a3785121a711cafcf5d1853de931cdc /cmd2/cmd2.py
parentd6d96763e2959b8af75a5c8705cd26ccad9e428e (diff)
downloadcmd2-git-ff9d885206d5a39b7d4eeab676fc957840405681.tar.gz
Removed enum.auto() for Python 3.5 compatibility
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index ad5d09de..977bea27 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -101,17 +101,17 @@ class CompletionMode(enum.Enum):
"""Enum for what type of tab completion to perform in read_input"""
# Tab completion will be disabled during read_input() call
# Use of custom up-arrow history supported
- NONE = enum.auto()
+ NONE = 1
# read_input() will tab complete cmd2 commands and their arguments
# cmd2's command line history will be used for up arrow if history is not provided.
# Otherwise use of custom up-arrow history supported.
- COMMANDS = enum.auto()
+ COMMANDS = 2
# read_input() will tab complete based on one of its following parameters:
# choices, choices_provider, completer, parser
# Use of custom up-arrow history supported
- CUSTOM = enum.auto()
+ CUSTOM = 3
class _CustomCompletionSettings: