Mercurial > hg
diff mercurial/revsetlang.py @ 35822:4269971b0d26
revsetlang: fix a doctest example on Python 3
# skip-blame because it's just some bytes prefixes
Differential Revision: https://phab.mercurial-scm.org/D1964
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 01 Feb 2018 14:59:38 -0500 |
parents | ed0902e8053e |
children | 87416288be98 |
line wrap: on
line diff
--- a/mercurial/revsetlang.py Thu Feb 01 14:28:45 2018 -0500 +++ b/mercurial/revsetlang.py Thu Feb 01 14:59:38 2018 -0500 @@ -635,7 +635,7 @@ "root(_list('a\\\\x00b\\\\x00c\\\\x00d'))" >>> formatspec(b'sort(%r, %ps)', b':', [b'desc', b'user']) "sort((:), 'desc', 'user')" - >>> formatspec('%ls', ['a', "'"]) + >>> formatspec(b'%ls', [b'a', b"'"]) "_list('a\\\\x00\\\\'')" ''' expr = pycompat.bytestr(expr)