testparseutil: fix doctest to use str instead of bytes
Differential Revision: https://phab.mercurial-scm.org/D6456
--- 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'))