# HG changeset patch # User Augie Fackler # Date 1544805470 18000 # Node ID 9e462fb88f79fe34ff4882ea241eb6bd4fc25509 # Parent 5fd63bca43a49ff4f41070c889ea0b2f79f04706 match: fix doctest to use bytes instead of str Fixes doctests on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5423 diff -r 5fd63bca43a4 -r 9e462fb88f79 mercurial/match.py --- 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)