From: W. Trevor King Date: Tue, 5 Feb 2013 19:39:02 +0000 (-0500) Subject: ui.cli: Import `readline` for more comfortable input() editing X-Git-Tag: v0.1~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=feb041d1363f13e580b26a748e7a250272a15a82;p=quizzer.git ui.cli: Import `readline` for more comfortable input() editing --- diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index 3ff4ce5..513fddc 100644 --- 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