From 3204c2a574070b416c1f9848527dec0f1bb89790 Mon Sep 17 00:00:00 2001 From: Bob Tolbert Date: Fri, 20 Dec 2013 07:23:35 -0700 Subject: [PATCH] Fix for readline REPL problem Darwin Python3 On OS X Mavericks, the Hy REPL doesn't allow the 'b' character when running with Python 3.3. This appears to be a common problem for Darwin and readline as mentioned in this post http://superuser.com/questions/297527/cant-type-the-b-letter-in-python-shell-in-os-x --- hy/completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/completer.py b/hy/completer.py index d32deaf..05ac88f 100644 --- a/hy/completer.py +++ b/hy/completer.py @@ -41,7 +41,7 @@ except ImportError: except ImportError: docomplete = False -if sys.platform == 'darwin': +if sys.platform == 'darwin' and 'libedit' in readline.__doc__: readline_bind = "bind ^I rl_complete" else: readline_bind = "tab: complete"