From: Fredrik Tolf Date: Thu, 27 Jun 2013 05:48:34 +0000 (+0200) Subject: Cache the target argspec in formparams. X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=commitdiff_plain;h=f639ac812fc618d4b45d419dc0a415a2e53ddf6e Cache the target argspec in formparams. --- 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: