##// END OF EJS Templates
DEV: AST transformers supplied to `InteractiveShell` can reject input....
DEV: AST transformers supplied to `InteractiveShell` can reject input. * Adds a new exception class, `InputRejected` to IPython.lib.security. * Updates `InteractiveShell.run_cell` and `InteractiveShell.transform_ast` to allow user-supplied AST transformers to reject input by raising an `InputRejected`. * Adds tests for the above behavior.

File last commit:

r13347:54891794
r17798:2591b6eb
Show More
tokenize2.py
9 lines | 160 B | text/x-python | PythonLexer
"""Load our patched versions of tokenize.
"""
import sys
if sys.version_info[0] >= 3:
from ._tokenize_py3 import *
else:
from ._tokenize_py2 import *