Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statprof.py @ 52663:dc36535a5edc
style: drop extraneous parentheses
These were rewritten by `pyupgrade`.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 14:07:43 -0500 |
parents | f4d1f0713b49 |
children | 4cb75772818d |
line wrap: on
line diff
--- a/mercurial/statprof.py Mon Jan 06 13:54:40 2025 -0500 +++ b/mercurial/statprof.py Mon Jan 06 14:07:43 2025 -0500 @@ -959,16 +959,14 @@ for sample in data.samples: stack = tuple( ( - ( - '%s:%d' - % ( - simplifypath(pycompat.sysstr(frame.path)), - frame.lineno or -1, - ), - pycompat.sysstr(frame.function), - ) - for frame in sample.stack + '%s:%d' + % ( + simplifypath(pycompat.sysstr(frame.path)), + frame.lineno or -1, + ), + pycompat.sysstr(frame.function), ) + for frame in sample.stack ) qstack = collections.deque(stack) if laststack == qstack: