Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35821:34287c2e3fc4 | 35822:4269971b0d26 |
---|---|
633 "branch('default')" | 633 "branch('default')" |
634 >>> formatspec(b'root(%ls)', [b'a', b'b', b'c', b'd']) | 634 >>> formatspec(b'root(%ls)', [b'a', b'b', b'c', b'd']) |
635 "root(_list('a\\\\x00b\\\\x00c\\\\x00d'))" | 635 "root(_list('a\\\\x00b\\\\x00c\\\\x00d'))" |
636 >>> formatspec(b'sort(%r, %ps)', b':', [b'desc', b'user']) | 636 >>> formatspec(b'sort(%r, %ps)', b':', [b'desc', b'user']) |
637 "sort((:), 'desc', 'user')" | 637 "sort((:), 'desc', 'user')" |
638 >>> formatspec('%ls', ['a', "'"]) | 638 >>> formatspec(b'%ls', [b'a', b"'"]) |
639 "_list('a\\\\x00\\\\'')" | 639 "_list('a\\\\x00\\\\'')" |
640 ''' | 640 ''' |
641 expr = pycompat.bytestr(expr) | 641 expr = pycompat.bytestr(expr) |
642 argiter = iter(args) | 642 argiter = iter(args) |
643 ret = [] | 643 ret = [] |