changeset 38697 | 3c569172848d |
parent 38274 | 99188a7c8717 |
child 39092 | 8943c1352b6c |
--- a/mercurial/statprof.py Sat Jul 14 02:10:43 2018 +0200 +++ b/mercurial/statprof.py Fri Jun 01 12:10:34 2018 +0200 @@ -454,7 +454,8 @@ def display(fp=None, format=3, data=None, **kwargs): '''Print statistics, either to stdout or the given file object.''' - data = data or state + if data is None: + data = state if fp is None: import sys