revsetlang: fix a doctest example on Python 3
authorAugie Fackler <augie@google.com>
Thu, 01 Feb 2018 14:59:38 -0500
changeset 35822 4269971b0d26
parent 35821 34287c2e3fc4
child 35823 4be991331a46
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
mercurial/revsetlang.py
--- 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)