From 1f95da2b0bf9f43754bd37812a3e62ee6af086d9 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Fri, 6 Apr 2018 09:26:01 -0700 Subject: [PATCH] Avoid using a core function name as a variable --- hy/core/language.hy | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hy/core/language.hy b/hy/core/language.hy index 4cba9a3..17d0d8a 100644 --- a/hy/core/language.hy +++ b/hy/core/language.hy @@ -297,16 +297,12 @@ Return series of accumulated sums (or other binary function results)." (defn macroexpand [form] "Return the full macro expansion of `form`." (import hy.macros) - - (setv name (calling-module-name)) - (hy.macros.macroexpand form (HyASTCompiler name))) + (hy.macros.macroexpand form (HyASTCompiler (calling-module-name)))) (defn macroexpand-1 [form] "Return the single step macro expansion of `form`." (import hy.macros) - - (setv name (calling-module-name)) - (hy.macros.macroexpand-1 form (HyASTCompiler name))) + (hy.macros.macroexpand-1 form (HyASTCompiler (calling-module-name)))) (defn merge-with [f &rest maps] "Return the map of `maps` joined onto the first via the function `f`.