##// END OF EJS Templates
Display source code correctly for decorated functions....
Ben Edwards -
Show More
@@ -133,6 +133,9 b' def getsource(obj,is_binary=False):'
133 133 if is_binary:
134 134 return None
135 135 else:
136 #get source if obj was decoratred with @decorator
137 if hasattr(obj,"__wrapped__"):
138 obj = obj.__wrapped__
136 139 try:
137 140 src = inspect.getsource(obj)
138 141 except TypeError:
General Comments 0
You need to be logged in to leave comments. Login now