Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revsetlang.py @ 34086:e18119b1ad5d
py3: fix mixed bytes/unicode in revsetlang._aliassyminitletters
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 17:03:23 +0900 |
parents | c6c8a52e28c9 |
children | 0fa781320203 |
comparison
equal
deleted
inserted
replaced
34085:6d21737c35bf | 34086:e18119b1ad5d |
---|---|
471 _weight, newtree = _optimize(tree, small=True) | 471 _weight, newtree = _optimize(tree, small=True) |
472 return newtree | 472 return newtree |
473 | 473 |
474 # the set of valid characters for the initial letter of symbols in | 474 # the set of valid characters for the initial letter of symbols in |
475 # alias declarations and definitions | 475 # alias declarations and definitions |
476 _aliassyminitletters = _syminitletters | set(pycompat.sysstr('$')) | 476 _aliassyminitletters = _syminitletters | {'$'} |
477 | 477 |
478 def _parsewith(spec, lookup=None, syminitletters=None): | 478 def _parsewith(spec, lookup=None, syminitletters=None): |
479 """Generate a parse tree of given spec with given tokenizing options | 479 """Generate a parse tree of given spec with given tokenizing options |
480 | 480 |
481 >>> _parsewith('foo($1)', syminitletters=_aliassyminitletters) | 481 >>> _parsewith('foo($1)', syminitletters=_aliassyminitletters) |