From c5600d7b38f215d2a111497efe3c9f14db13a2b1 Mon Sep 17 00:00:00 2001 From: Johnathon Mlady Date: Fri, 20 Nov 2015 13:29:34 -0500 Subject: [PATCH] non-critical macro patch: fixed what seemed to be a typo...'emtpy' -?> 'empty' (unless emtpy has an undocumented meaning) --- hy/macros.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hy/macros.py b/hy/macros.py index d5821b9..bfc6e26 100644 --- a/hy/macros.py +++ b/hy/macros.py @@ -123,7 +123,7 @@ def load_macros(module_name): _import(module) -def make_emtpy_fn_copy(fn): +def make_empty_fn_copy(fn): argspec = getargspec(fn) formatted_args = formatargspec(*argspec) fn_str = 'lambda {}: None'.format( @@ -167,7 +167,7 @@ def macroexpand_1(tree, module_name): m = _hy_macros[None].get(fn) if m is not None: try: - m_copy = make_emtpy_fn_copy(m) + m_copy = make_empty_fn_copy(m) m_copy(*ntree[1:]) except TypeError as e: msg = "expanding `" + str(tree[0]) + "': "