From feb041d1363f13e580b26a748e7a250272a15a82 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 5 Feb 2013 14:39:02 -0500 Subject: [PATCH] ui.cli: Import `readline` for more comfortable input() editing --- quizzer/ui/cli.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.26.2