From 9498e25245dabcb4d1066fcc41a25cb51033bc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20J=C3=BAnior?= Date: Mon, 2 Sep 2013 09:23:53 -0300 Subject: [PATCH] Adding **kwargs to @harakiri I can't see any reason why this decorator doesn't have `**kwargs`, so I add it. --- uwsgidecorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uwsgidecorators.py b/uwsgidecorators.py index bbd035b8..3e850f84 100644 --- a/uwsgidecorators.py +++ b/uwsgidecorators.py @@ -378,9 +378,9 @@ class harakiri(object): def __init__(self, seconds): self.s = seconds - def real_call(self, *args): + def real_call(self, *args, **kwargs): uwsgi.set_user_harakiri(self.s) - r = self.f(*args) + r = self.f(*args, **kwargs) uwsgi.set_user_harakiri(0) return r