From 06628dbba511851bb762669a05275945e1ddeb6a Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Thu, 17 Oct 2013 18:49:52 +0200 Subject: [PATCH] Fully qualify the HyTypeError reference No need to import it explicitly, the hy module is available everywhere. --- hy/core/bootstrap.hy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hy/core/bootstrap.hy b/hy/core/bootstrap.hy index 69fbfbb..007d92b 100644 --- a/hy/core/bootstrap.hy +++ b/hy/core/bootstrap.hy @@ -25,12 +25,10 @@ ;;; These macros are the essential hy macros. ;;; They are automatically required everywhere, even inside hy.core modules. -(import [hy.compiler [HyTypeError]]) - (defmacro macro-error [location reason] "error out properly within a macro" - `(raise (HyTypeError ~location ~reason))) + `(raise (hy.compiler.HyTypeError ~location ~reason))) (defmacro defmacro-alias [names lambda-list &rest body]