diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -437,4 +437,5 @@ test-verify.t test-websub.t test-win32text.t +test-wireproto-framing.py test-xdg.t diff --git a/mercurial/utils/stringutil.py b/mercurial/utils/stringutil.py --- a/mercurial/utils/stringutil.py +++ b/mercurial/utils/stringutil.py @@ -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)