##// END OF EJS Templates
add prefer_stream arg to utils.encoding.getdefaultencoding...
add prefer_stream arg to utils.encoding.getdefaultencoding sometimes the stream encoding should be ignored, and start with locale (e.g. Popen on Windows Python 2). Default behavior is unchanged.

File last commit:

r13347:54891794
r14695:bda2ad7d
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 *