Fully qualify the HyTypeError reference

No need to import it explicitly, the hy module is available everywhere.
This commit is contained in:
Nicolas Dandrimont 2013-10-17 18:49:52 +02:00
parent b56f03ed29
commit 06628dbba5

View File

@ -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]