From 6e33a7e3a35e22250fd8f05544b68ac8dd9dba9b Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Thu, 17 Jan 2013 09:11:03 -0500 Subject: [PATCH] changes --- bin/hython | 5 ----- eg/pkginfo.hy | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/hython b/bin/hython index 0cadaca..d19b8be 100755 --- a/bin/hython +++ b/bin/hython @@ -13,12 +13,7 @@ except ImportError: if len(sys.argv) > 1: sys.argv = sys.argv[1:] -# 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) diff --git a/eg/pkginfo.hy b/eg/pkginfo.hy index 781b29d..152d654 100644 --- a/eg/pkginfo.hy +++ b/eg/pkginfo.hy @@ -17,7 +17,10 @@ (do (def kv (.split x ":" 1)) (def key (.strip (index kv 0))) (set-index keys key (.strip (index kv 1)))) - (set-index keys key (+ (index keys key) "\n" (.strip x)))))) + (do + (if (== x " .") + (def x "")) + (set-index keys key (+ (index keys key) "\n" (.strip x))))))) (dict keys)))