Mercurial > hg
changeset 46172:d04c0e494cfe
dispatch: remove stale comment about fdopen()-ed stdio
On Python 3, stdout is just wrapped by LineBufferedWrapper.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 18 Dec 2020 20:35:11 +0900 |
parents | dbc462e34e92 |
children | a9765e0a461d |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Sat Dec 19 01:42:51 2020 -0500 +++ b/mercurial/dispatch.py Fri Dec 18 20:35:11 2020 +0900 @@ -207,9 +207,7 @@ except IOError: pass # Otherwise mark it as closed to silence "Exception ignored in" - # message emitted by the interpreter finalizer. Be careful to - # not close procutil.stdout, which may be a fdopen-ed file object - # and its close() actually closes the underlying file descriptor. + # message emitted by the interpreter finalizer. try: fp.close() except IOError: