ui.cli: Import `readline` for more comfortable input() editing
authorW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 19:39:02 +0000 (14:39 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 19:39:40 +0000 (14:39 -0500)
quizzer/ui/cli.py

index 3ff4ce547f83283ab80c18c70ca27d4da2ccb097..513fddc2dac67f09c061a3cfd36f92beef496ede 100644 (file)
@@ -1,3 +1,8 @@
+try:
+    import readline as _readline
+except ImportError as _readline_import_error:
+    _readline = None
+
 from . import UserInterface