]> err.no Git - dak/commitdiff
Wrap __doc__ and func_name in @session_wrapper.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 08:40:04 +0000 (08:40 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 08:40:04 +0000 (08:40 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/dbconn.py

index 3aa7b8e2458965f152ede8dd57b361bc72bd338a..905bc47d081e5445228f250a13e951353fa943dd 100755 (executable)
@@ -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
 
 ################################################################################