From 169818b275a896ab609887a43f9ddf8fb9e46d74 Mon Sep 17 00:00:00 2001 From: ailnlv Date: Wed, 13 May 2015 19:23:56 -0300 Subject: [PATCH] Fixing https://github.com/web2py/web2py/issues/969 Running readline.parse_and_bind("bind ^I rl_complete") makes the letter "b" stop working on the console. This patch solves the issue and correctly enables tab completition on OSX. --- gluon/shell.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gluon/shell.py b/gluon/shell.py index 5297454f..1cac24e2 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -41,9 +41,7 @@ def enable_autocomplete_and_history(adir, env): except ImportError: pass else: - readline.parse_and_bind("bind ^I rl_complete" - if sys.platform == 'darwin' - else "tab: complete") + readline.parse_and_bind("tab: complete") history_file = os.path.join(adir, '.pythonhistory') try: readline.read_history_file(history_file)