diff --git a/mercurial/statprof.py b/mercurial/statprof.py --- a/mercurial/statprof.py +++ b/mercurial/statprof.py @@ -815,7 +815,6 @@ tos = sample.stack[0] name = tos.function path = simplifypath(tos.path) - category = '%s:%d' % (path, tos.lineno) stack = tuple((('%s:%d' % (simplifypath(frame.path), frame.lineno), frame.function) for frame in sample.stack)) qstack = collections.deque(stack)