Mercurial > hg
changeset 36129:2874896a6e3b
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 12 Feb 2018 20:43:33 -0500 |
parents | 02ed94dd9fd6 |
children | 7ec26f27ca83 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Mon Feb 12 20:43:05 2018 -0500 +++ b/mercurial/util.py Mon Feb 12 20:43:33 2018 -0500 @@ -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.