C:\Users\pro>python D:\test\
testt.pyTraceback (most recent call last):
File "D:\test\
testt.py", line 21, in <module>
dct_post = ast.literal_eval(text)
File "C:\Users\pro\AppData\Local\Programs\Python\Python39\lib\
ast.py", line 62, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "C:\Users\pro\AppData\Local\Programs\Python\Python39\lib\
ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 1
error code: 1015
^
SyntaxError: invalid syntax