Patchwork D6456: testparseutil: fix doctest to use str instead of bytes

login
register
mail settings
Submitter phabricator
Date May 29, 2019, 2:32 p.m.
Message ID <858ebf78de64b49413f013890f1ade48@localhost.localdomain>
Download mbox | patch
Permalink /patch/40267/
State Not Applicable
Headers show

Comments

phabricator - May 29, 2019, 2:32 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc2deb2512823: testparseutil: fix doctest to use str instead of bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6456?vs=15286&id=15291

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

AFFECTED FILES
  contrib/testparseutil.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/testparseutil.py b/contrib/testparseutil.py
--- a/contrib/testparseutil.py
+++ b/contrib/testparseutil.py
@@ -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'))