From: Chris Lamb Date: Tue, 27 Oct 2009 08:40:04 +0000 (+0000) Subject: Wrap __doc__ and func_name in @session_wrapper. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c5510e389b89bddc072009132ed48b9097fd43;p=dak Wrap __doc__ and func_name in @session_wrapper. Signed-off-by: Chris Lamb --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 3aa7b8e2..905bc47d 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -75,6 +75,9 @@ def session_wrapper(fn): # We created a session; close it. kwargs['session'].close() + wrapped.__doc__ = fn.__doc__ + wrapped.func_name = fn.func_name + return wrapped ################################################################################