diff -r e743b8524d60 -r 3942bd8db8b2 mercurial/utils/stringutil.py --- a/mercurial/utils/stringutil.py Fri Apr 13 22:55:01 2018 -0700 +++ b/mercurial/utils/stringutil.py Sat Apr 14 01:34:44 2018 -0400 @@ -510,4 +510,6 @@ def evalpythonliteral(s): """Evaluate a string containing a Python literal expression""" # We could backport our tokenizer hack to rewrite '' to u'' if we want + if pycompat.ispy3: + return ast.literal_eval(s.decode('latin1')) return ast.literal_eval(s)