mercurial/dispatch.py
changeset 46172 d04c0e494cfe
parent 46118 db5dddb38f5b
child 46173 a9765e0a461d
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