Patchwork D1964: revsetlang: fix a doctest example on Python 3

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 8:25 p.m.
Message ID <8179f5eeda85ac0ea9344d7087847f16@localhost.localdomain>
Download mbox | patch
Permalink /patch/27120/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 8:25 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf4faae661968: revsetlang: fix a doctest example on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1964?vs=5038&id=5051

REVISION DETAIL
  https://phab.mercurial-scm.org/D1964

AFFECTED FILES
  mercurial/revsetlang.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py
--- a/mercurial/revsetlang.py
+++ b/mercurial/revsetlang.py
@@ -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)