Mercurial > hg
changeset 31385:1c48a8278b2f
py3: fix slicing of bytes in revset.formatspec()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 12 Mar 2017 17:16:43 -0700 |
parents | fac5cd3b8673 |
children | f1f57e4e55e0 |
files | mercurial/revsetlang.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revsetlang.py Sun Mar 12 17:13:54 2017 -0700 +++ b/mercurial/revsetlang.py Sun Mar 12 17:16:43 2017 -0700 @@ -644,10 +644,10 @@ pos = 0 arg = 0 while pos < len(expr): - c = expr[pos] + c = expr[pos:pos + 1] if c == '%': pos += 1 - d = expr[pos] + d = expr[pos:pos + 1] if d == '%': ret += d elif d in 'dsnbr': @@ -656,7 +656,7 @@ elif d == 'l': # a list of some type pos += 1 - d = expr[pos] + d = expr[pos:pos + 1] ret += listexp(list(args[arg]), d) arg += 1 else: