changeset 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 34287c2e3fc4
children 4be991331a46
files mercurial/revsetlang.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)