##// END OF EJS Templates
ensure a fallback exists, so use local std{in,out,err}...
ensure a fallback exists, so use local std{in,out,err} Since IOStream instances require a valid fallback stream, use the locally defined std{in,out,err} instead of sys.std{in,out,err} in IOTerm's __init__ method. Note that the local std{in,out,err} are IOStream instances as well, that fall back to os.devnull

File last commit:

r3408:261328d5
r6652:183d9879
Show More
__init__.py
4 lines | 82 B | text/x-python | PythonLexer
try:
from pyparsing import *
except ImportError:
from _pyparsing import *