changeset 48911 | 46b3ecfb16e2 |
parent 48875 | 6000f5b25c9b |
child 48946 | 642e31cb55f0 |
--- a/mercurial/utils/stringutil.py Mon Feb 21 10:52:27 2022 -0700 +++ b/mercurial/utils/stringutil.py Mon Feb 21 10:53:09 2022 -0700 @@ -964,6 +964,4 @@ 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) + return ast.literal_eval(s.decode('latin1'))