From d22f3483df089fc239b4182807c12aaab5ab1c7d Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 4 Jun 2013 15:30:59 +0200 Subject: [PATCH] Set __wrapped__ in xhtmlresp as well. --- wrw/sp/xhtml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wrw/sp/xhtml.py b/wrw/sp/xhtml.py index 3c6c0f6..447c1b1 100644 --- a/wrw/sp/xhtml.py +++ b/wrw/sp/xhtml.py @@ -58,4 +58,5 @@ def forreq(req, tree): def xhtmlresp(callable): def wrapper(req): return forreq(req, callable(req)) + wrapper.__wrapped__ = callable return wrapper -- 2.11.0