changeset 40960:9e462fb88f79

match: fix doctest to use bytes instead of str Fixes doctests on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5423
author Augie Fackler <augie@google.com>
date Fri, 14 Dec 2018 11:37:50 -0500
parents 5fd63bca43a4
children a314eafd7c8d
files mercurial/match.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Fri Dec 14 19:30:20 2018 +0300
+++ b/mercurial/match.py	Fri Dec 14 11:37:50 2018 -0500
@@ -1196,8 +1196,8 @@
 
     Test too large input
     >>> _buildregexmatch([
-    ...     ('relglob', '?' * MAX_RE_SIZE, '')
-    ... ], '$')
+    ...     (b'relglob', b'?' * MAX_RE_SIZE, b'')
+    ... ], b'$')
     Traceback (most recent call last):
     ...
     Abort: matcher pattern is too long (20009 bytes)