From c4f183f97c006a7c5585700a1f180e89ecf805c9 Mon Sep 17 00:00:00 2001 From: Andrew Silva Date: Mon, 7 Aug 2017 13:25:58 -0400 Subject: [PATCH 1/2] Added docomplete truth check on hy/completer.py:27 Without the check, the next line will reference readline even if the library was not successfully loaded. --- hy/completer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hy/completer.py b/hy/completer.py index c4de45c..2f41e3f 100644 --- a/hy/completer.py +++ b/hy/completer.py @@ -24,10 +24,11 @@ except ImportError: except ImportError: docomplete = False -if sys.platform == 'darwin' and 'libedit' in readline.__doc__: - readline_bind = "bind ^I rl_complete" -else: - readline_bind = "tab: complete" +if docomplete: + if sys.platform == 'darwin' and 'libedit' in readline.__doc__: + readline_bind = "bind ^I rl_complete" + else: + readline_bind = "tab: complete" class Completer(object): From 1f8c82ae76b9232429a4de4741bfabe5288213f6 Mon Sep 17 00:00:00 2001 From: Andrew Silva Date: Mon, 7 Aug 2017 13:28:07 -0400 Subject: [PATCH 2/2] Added Andrew Silva to AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 7791140..081fc8d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -81,3 +81,4 @@ * Hikaru Ikuta * David Schaefer * Jordan Danford +* Andrew Silva