testparseutil: fix doctest to use str instead of bytes
authorAugie Fackler <augie@google.com>
Wed, 29 May 2019 10:00:30 -0400
changeset 42410 c2deb2512823
parent 42409 37f38e1dea44
child 42411 4372d56112c9
testparseutil: fix doctest to use str instead of bytes Differential Revision: https://phab.mercurial-scm.org/D6456
contrib/testparseutil.py
--- 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'))