From 57bf7b5cba32ea9805fde963fbd72b11d1c9709a Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sun, 10 Mar 2013 10:35:08 -0400 Subject: [PATCH] syntax fixes --- hy/macros.py | 3 ++- site/shim.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hy/macros.py b/hy/macros.py index 43e4fb0..200546c 100644 --- a/hy/macros.py +++ b/hy/macros.py @@ -54,7 +54,8 @@ def process(tree): return obj if isinstance(tree, HyList): - obj = HyList([process(x) for x in tree]) + obj = HyList([process(x) for x in tree]) # NOQA + # flake8 thinks we're redefining from 52. obj.replace(tree) return obj diff --git a/site/shim.py b/site/shim.py index c213f9b..be23481 100644 --- a/site/shim.py +++ b/site/shim.py @@ -36,7 +36,7 @@ def route_macro(tree): @macro("post_route") -def route_macro(tree): +def post_route_macro(tree): return router(tree, rkwargs=HyList([HyString("POST")]))