py3: fix mixed bytes/unicode in revsetlang._aliassyminitletters
authorYuya Nishihara <yuya@tcha.org>
Sun, 03 Sep 2017 17:03:23 +0900
changeset 34069 e18119b1ad5d
parent 34068 6d21737c35bf
child 34070 01c9700fbf9f
py3: fix mixed bytes/unicode in revsetlang._aliassyminitletters
mercurial/revsetlang.py
--- a/mercurial/revsetlang.py	Sun Sep 03 15:01:23 2017 +0900
+++ b/mercurial/revsetlang.py	Sun Sep 03 17:03:23 2017 +0900
@@ -473,7 +473,7 @@
 
 # the set of valid characters for the initial letter of symbols in
 # alias declarations and definitions
-_aliassyminitletters = _syminitletters | set(pycompat.sysstr('$'))
+_aliassyminitletters = _syminitletters | {'$'}
 
 def _parsewith(spec, lookup=None, syminitletters=None):
     """Generate a parse tree of given spec with given tokenizing options