Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dispatch.py @ 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 | db5dddb38f5b |
children | a9765e0a461d |
comparison
equal
deleted
inserted
replaced
46171:dbc462e34e92 | 46172:d04c0e494cfe |
---|---|
205 fp.flush() | 205 fp.flush() |
206 continue | 206 continue |
207 except IOError: | 207 except IOError: |
208 pass | 208 pass |
209 # Otherwise mark it as closed to silence "Exception ignored in" | 209 # Otherwise mark it as closed to silence "Exception ignored in" |
210 # message emitted by the interpreter finalizer. Be careful to | 210 # message emitted by the interpreter finalizer. |
211 # not close procutil.stdout, which may be a fdopen-ed file object | |
212 # and its close() actually closes the underlying file descriptor. | |
213 try: | 211 try: |
214 fp.close() | 212 fp.close() |
215 except IOError: | 213 except IOError: |
216 pass | 214 pass |
217 | 215 |