# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-05-29 10:51:15 # Node ID 1fb0a85fb20ecc7c35153ea5d2fa5ef59d3347ce # Parent 9ed70525fd6e78506bedbd165f5dec62dd5b019d py3: use pycompat.bytestr so that we don't get ascii values This fixes `hg files 'set:(**.py)'` which makes test-check-py3-compat.t able to run on Python 3. So if you now do `python3 ./run-tests.py test-check-py3-compat`, the test will actually run. diff --git a/mercurial/fileset.py b/mercurial/fileset.py --- a/mercurial/fileset.py +++ b/mercurial/fileset.py @@ -14,6 +14,7 @@ from . import ( error, merge, parser, + pycompat, registrar, scmutil, util, @@ -43,6 +44,7 @@ globchars = ".*{}[]?/\\_" def tokenize(program): pos, l = 0, len(program) + program = pycompat.bytestr(program) while pos < l: c = program[pos] if c.isspace(): # skip inter-token whitespace