summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-19 12:13:32 -0400
committerEric Lin <anselor@gmail.com>2018-04-19 12:13:32 -0400
commitc2186332aeb6f59063bb410fca25ed400ce410cd (patch)
treeccc1d07fcf14f81c6e06d3b9dddcf141f96dcdd2 /cmd2/rl_utils.py
parentff66a95f399330bfca5b7f3b4dcd18b457574ac4 (diff)
downloadcmd2-git-c2186332aeb6f59063bb410fca25ed400ce410cd.tar.gz
Addresses comments on #362
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 1dc83d15..c00a5784 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -22,13 +22,15 @@ except ImportError:
pass
-# Check what implementation of readline we are using
class RlType(Enum):
+ """Readline library types we recognize"""
GNU = 1
PYREADLINE = 2
NONE = 3
+# Check what implementation of readline we are using
+
rl_type = RlType.NONE
# The order of this check matters since importing pyreadline will also show readline in the modules list