##// END OF EJS Templates
stringutil: remove Python 2 support code...
Gregory Szorc -
r49766:46b3ecfb default
parent child Browse files
Show More
@@ -964,6 +964,4 b' def parselist(value):'
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:
968 return ast.literal_eval(s.decode('latin1'))
967 return ast.literal_eval(s.decode('latin1'))
969 return ast.literal_eval(s)
General Comments 0
You need to be logged in to leave comments. Login now