We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a2af4d commit 75ca516Copy full SHA for 75ca516
cmd2.py
@@ -34,7 +34,6 @@
34
import os
35
import platform
36
import re
37
-import readline
38
import shlex
39
import six
40
import subprocess
@@ -80,6 +79,13 @@
80
79
except ImportError:
81
ipython_available = False
82
+# Try to import readline, but allow failure for convenience in Windows unit testing
83
+# Note: If this actually fails, you should install readline on Linux or Mac or pyreadline on Windows
84
+try:
85
+ import readline
86
+except ImportError:
87
+ pass
88
+
89
__version__ = '0.7.1a'
90
91
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
0 commit comments