##// END OF EJS Templates
Start refactoring handling of color....
Start refactoring handling of color. This is one more step into getting rid of the old way of handling colors in IPython, in particular here we move the scheme/style as a configuration option of the parser instead of passing it around into the formats functions. Also remove our own usage of deprecated arguments.

File last commit:

r13347:54891794
r22911:4335860f
Show More
tokenize2.py
9 lines | 160 B | text/x-python | PythonLexer
Thomas Kluyver
Now include patched copies of tokenize for Python 2 and 3.
r10110 """Load our patched versions of tokenize.
"""
import sys
if sys.version_info[0] >= 3:
Thomas Kluyver
Use explicit relative imports...
r13347 from ._tokenize_py3 import *
Thomas Kluyver
Now include patched copies of tokenize for Python 2 and 3.
r10110 else:
Thomas Kluyver
Use explicit relative imports...
r13347 from ._tokenize_py2 import *