# HG changeset patch # User Yuya Nishihara # Date 1608291311 -32400 # Node ID d04c0e494cfe8f1de323679fd8bf43a4205bc8ea # Parent dbc462e34e92269f7ff943aa9e853f2d56246e02 dispatch: remove stale comment about fdopen()-ed stdio On Python 3, stdout is just wrapped by LineBufferedWrapper. diff -r dbc462e34e92 -r d04c0e494cfe mercurial/dispatch.py --- 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: