equal
deleted
inserted
replaced
962 |
962 |
963 |
963 |
964 def evalpythonliteral(s): |
964 def evalpythonliteral(s): |
965 """Evaluate a string containing a Python literal expression""" |
965 """Evaluate a string containing a Python literal expression""" |
966 # We could backport our tokenizer hack to rewrite '' to u'' if we want |
966 # We could backport our tokenizer hack to rewrite '' to u'' if we want |
967 if pycompat.ispy3: |
967 return ast.literal_eval(s.decode('latin1')) |
968 return ast.literal_eval(s.decode('latin1')) |
|
969 return ast.literal_eval(s) |
|