Patchwork D6050: revsetlang: use sysbytes() instead of blind encode()

login
register
mail settings
Submitter phabricator
Date March 3, 2019, 9:34 a.m.
Message ID <b4ebd0df95709b70ee74e7186bdb5ec2@localhost.localdomain>
Download mbox | patch
Permalink /patch/39016/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2019, 9:34 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGddb174511f1b: revsetlang: use sysbytes() instead of blind encode() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6050?vs=14299&id=14315

REVISION DETAIL
  https://phab.mercurial-scm.org/D6050

AFFECTED FILES
  mercurial/revsetlang.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py
--- a/mercurial/revsetlang.py
+++ b/mercurial/revsetlang.py
@@ -62,8 +62,8 @@ 
 
 # default set of valid characters for the initial letter of symbols
 _syminitletters = set(pycompat.iterbytestr(
-    string.ascii_letters.encode('ascii') +
-    string.digits.encode('ascii') +
+    pycompat.sysbytes(string.ascii_letters) +
+    pycompat.sysbytes(string.digits) +
     '._@')) | set(map(pycompat.bytechr, pycompat.xrange(128, 256)))
 
 # default set of valid characters for non-initial letters of symbols