From 9b770853aedf7ca27b62d5077a37066751b0a9a7 Mon Sep 17 00:00:00 2001 From: Thom Neale Date: Fri, 28 Dec 2012 17:57:16 -0500 Subject: [PATCH] Imported readline in hython --- bin/hython | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/hython b/bin/hython index 5e8681d..75439ca 100755 --- a/bin/hython +++ b/bin/hython @@ -1,10 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - from hy.lang.importer import _hy_import_file from code import InteractiveConsole import sys +try: + import readline +except ImportError: + pass if len(sys.argv) > 1: sys.argv = sys.argv[1:]