Skip to content
Snippets Groups Projects
Commit 2874896a authored by Augie Fackler's avatar Augie Fackler
Browse files

util: format line number of stack trace using %d

Required on Python 3, functional on Python 2.

Differential Revision: https://phab.mercurial-scm.org/D2211
parent 02ed94dd
No related branches found
No related tags found
No related merge requests found
......@@ -3159,7 +3159,7 @@
results.append(hook(*args))
return results
def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%s', depth=0):
def getstackframes(skip=0, line=' %-*s in %s\n', fileline='%s:%d', depth=0):
'''Yields lines for a nicely formatted stacktrace.
Skips the 'skip' last entries, then return the last 'depth' entries.
Each file+linenumber is formatted according to fileline.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment