Issue 13381: compile fails to compile a ast module object giving a incomprehensible error (original) (raw)

$ python3.2 -c 'import ast;compile(ast.parse(open("testing/test_keymap.py").read()), "test", "exec")' Traceback (most recent call last): File "", line 1, in TypeError: AST string must be of type str

note that just compiling the source works fine