##// END OF EJS Templates
Allow InputTransformers to raise SyntaxErrors...
Allow InputTransformers to raise SyntaxErrors This is a relatively trivial modification of the IPython main loop to catch a possible SyntaxError and print it instead of quitting. Doctesting this change is somewhat tricky since we actually need to run the main TerminalInteractiveShell.interact() loop, and is done through a subprocess and piping in a testcase.

File last commit:

r13348:e6afea51
r13522:ccd47251
Show More
simplevars.py
3 lines | 61 B | text/x-python | PythonLexer
from __future__ import print_function
x = 1
print('x is:',x)