Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7d8a78

Browse files
committed
runcall(): Expose the return value of the profiled function; this allows
changing an application to collect profile data on one part of the app while still making use of the profiled component, without relying on side effects.
1 parent 30d1c75 commit e7d8a78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/hotshot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ def runctx(self, cmd, globals, locals):
3535
return self
3636

3737
def runcall(self, func, *args, **kw):
38-
self._prof.runcall(func, args, kw)
38+
return self._prof.runcall(func, args, kw)

0 commit comments

Comments
 (0)