From d5c5510e389b89bddc072009132ed48b9097fd43 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 27 Oct 2009 08:40:04 +0000 Subject: [PATCH] Wrap __doc__ and func_name in @session_wrapper. Signed-off-by: Chris Lamb --- daklib/dbconn.py | 3 +++ 1 file changed, 3 insertions(+) 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 ################################################################################ -- 2.39.5