##// END OF EJS Templates
procutil: introduce pseudo file object that just raises EBADF...
procutil: introduce pseudo file object that just raises EBADF This should be safer than closing underlying fd as the fd may be reused. On Python 2, closed sys.stdin could be redirected to a random file having fd=0, but we'd be better not copying this behavior. Only readinto() and write() are implemented according to the following ABC table. fileno() is not implemented since fd=0/1/2 may be assigned later to other files. https://docs.python.org/3/library/io.html#class-hierarchy

File last commit:

r36625:c6061cad default
r46790:a1601ff3 default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer