From f639ac812fc618d4b45d419dc0a415a2e53ddf6e Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 27 Jun 2013 07:48:34 +0200 Subject: [PATCH] Cache the target argspec in formparams. --- wrw/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/util.py b/wrw/util.py index aea3037..4fad6e9 100644 --- a/wrw/util.py +++ b/wrw/util.py @@ -8,9 +8,9 @@ def wsgiwrap(callable): return wrapper def formparams(callable): + spec = inspect.getargspec(callable) def wrapper(req): data = form.formdata(req) - spec = inspect.getargspec(callable) args = dict(data.items()) args["req"] = req if not spec.keywords: -- 2.11.0