109 return [{'error': (filename, 0, 0, '', |
110 return [{'error': (filename, 0, 0, '', |
110 'Quixote plugin not found.')}] |
111 'Quixote plugin not found.')}] |
111 template = quixote.ptl_compile.Template(codestring, file_enc) |
112 template = quixote.ptl_compile.Template(codestring, file_enc) |
112 template.compile() |
113 template.compile() |
113 else: |
114 else: |
114 # ast.PyCF_ONLY_AST = 1024, speed optimisation |
115 module = builtins.compile( |
115 module = builtins.compile(codestring, file_enc, 'exec', 1024) |
116 codestring, file_enc, 'exec', ast.PyCF_ONLY_AST) |
116 except SyntaxError as detail: |
117 except SyntaxError as detail: |
117 index = 0 |
118 index = 0 |
118 code = "" |
119 code = "" |
119 error = "" |
120 error = "" |
120 lines = traceback.format_exception_only(SyntaxError, detail) |
121 lines = traceback.format_exception_only(SyntaxError, detail) |