Index: q-2.5/q.py =================================================================== --- q-2.5.orig/q.py +++ q-2.5/q.py @@ -66,7 +66,7 @@ else: class Q(object): __doc__ = __doc__ # from the module's __doc__ above - import ast, code, inspect, os, pydoc, sys, random, re, time, pprint + import ast, code, inspect, functools, os, pydoc, sys, random, re, time, pprint # The debugging log will go to this file; temporary files will also have # this path as a prefix, followed by a random number. @@ -293,7 +293,7 @@ class Q(object): self.NORMAL]) self.writer.write(s.chunks) return result - return wrapper + return self.functools.update_wrapper(wrapper, func) def __call__(self, *args): """If invoked as a decorator on a function, adds tracing output to the