Mercurial > hg
changeset 42391:c2deb2512823
testparseutil: fix doctest to use str instead of bytes
Differential Revision: https://phab.mercurial-scm.org/D6456
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 29 May 2019 10:00:30 -0400 |
parents | 37f38e1dea44 |
children | 4372d56112c9 |
files | contrib/testparseutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/testparseutil.py Wed May 29 09:59:35 2019 -0400 +++ b/contrib/testparseutil.py Wed May 29 10:00:30 2019 -0400 @@ -255,7 +255,7 @@ class fileheredocmatcher(embeddedmatcher): """Detect "cat > FILE << LIMIT" style embedded code - >>> matcher = fileheredocmatcher(b'heredoc .py file', br'[^<]+\\.py') + >>> matcher = fileheredocmatcher('heredoc .py file', r'[^<]+\\.py') >>> b2s(matcher.startsat(' $ cat > file.py << EOF\\n')) ('file.py', ' > EOF\\n') >>> b2s(matcher.startsat(' $ cat >>file.py <<EOF\\n'))