projects
/
quizzer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd086ca
)
ui.cli: Import `readline` for more comfortable input() editing
author
W. Trevor King
<wking@tremily.us>
Tue, 5 Feb 2013 19:39:02 +0000
(14:39 -0500)
committer
W. Trevor King
<wking@tremily.us>
Tue, 5 Feb 2013 19:39:40 +0000
(14:39 -0500)
quizzer/ui/cli.py
patch
|
blob
|
history
diff --git
a/quizzer/ui/cli.py
b/quizzer/ui/cli.py
index 3ff4ce547f83283ab80c18c70ca27d4da2ccb097..513fddc2dac67f09c061a3cfd36f92beef496ede 100644
(file)
--- a/
quizzer/ui/cli.py
+++ b/
quizzer/ui/cli.py
@@
-1,3
+1,8
@@
+try:
+ import readline as _readline
+except ImportError as _readline_import_error:
+ _readline = None
+
from . import UserInterface