changeset 34069: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 6d21737c35bf
children 01c9700fbf9f
files mercurial/revsetlang.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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