comparison mercurial/match.py @ 40947: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 3984409e144b
children 074c72a38423
comparison
equal deleted inserted replaced
40946:5fd63bca43a4 40947:9e462fb88f79
1194 """Build a match function from a list of kinds and kindpats, 1194 """Build a match function from a list of kinds and kindpats,
1195 return regexp string and a matcher function. 1195 return regexp string and a matcher function.
1196 1196
1197 Test too large input 1197 Test too large input
1198 >>> _buildregexmatch([ 1198 >>> _buildregexmatch([
1199 ... ('relglob', '?' * MAX_RE_SIZE, '') 1199 ... (b'relglob', b'?' * MAX_RE_SIZE, b'')
1200 ... ], '$') 1200 ... ], b'$')
1201 Traceback (most recent call last): 1201 Traceback (most recent call last):
1202 ... 1202 ...
1203 Abort: matcher pattern is too long (20009 bytes) 1203 Abort: matcher pattern is too long (20009 bytes)
1204 """ 1204 """
1205 try: 1205 try: