summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-05-12 13:44:15 +0100
committerFederico Ceratto <federico.ceratto@gmail.com>2016-05-12 13:44:15 +0100
commitafcc8f7018abbf1bd8b89c942d7f4cb9cc6e71cd (patch)
tree0426348871b4b22a779c2da53f5f1ba07b63a0cd /cmd2.py
parent0df289c31666f1b25079d10a7d2a2d536d67723f (diff)
downloadcmd2-git-afcc8f7018abbf1bd8b89c942d7f4cb9cc6e71cd.tar.gz
Support Python 3 input(), related to #26
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index 9ee6aba0..8098b996 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -44,6 +44,11 @@ import pyparsing
__version__ = '0.6.9a'
+try:
+ raw_input
+except NameError:
+ raw_input = input
+
if sys.version_info[0] == 2:
pyparsing.ParserElement.enablePackrat()