From 5d54fcd158af598ff6abfa1f2c6e596d109b6372 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sat, 29 Dec 2012 10:56:45 -0500 Subject: [PATCH 1/2] cleaning up the traceback --- bin/hython | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/hython b/bin/hython index 75439ca..e0184cf 100755 --- a/bin/hython +++ b/bin/hython @@ -3,7 +3,9 @@ from hy.lang.importer import _hy_import_file from code import InteractiveConsole +import traceback import sys + try: import readline except ImportError: @@ -11,7 +13,12 @@ except ImportError: if len(sys.argv) > 1: sys.argv = sys.argv[1:] - mod = _hy_import_file(sys.argv[0], '__main__') + try: + mod = _hy_import_file(sys.argv[0], '__main__') + except Exception as e: + exc_type, exc_value, exc_traceback = sys.exc_info() + ntb = exc_traceback.tb_next.tb_next.tb_next # YUCK. + raise type(e), None, ntb sys.exit(0) From 32eee6d6c16c2fd65459722edb90d1bf6c1debc6 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sat, 29 Dec 2012 11:43:56 -0500 Subject: [PATCH 2/2] Tagging 0.7.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index beeec2e..3e44464 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ things with other things until things looks like other things. """ appname = "hy" -version = "0.6.0" +version = "0.7.0" setup(**{ "name": appname,