Mercurial > hg
diff hgext/__init__.py @ 51738:d17578f96e60
httppeer: simplify two-way stream cleanup
No need to conditionalize the cleanup if the filename is assigned outside the
exception handler. I suppose `fd` leaks if `os.fdopen()` fails, but that was
the case before too (and may trigger another exception in the `finally` block on
Windows, when the file is still open).
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 26 Jul 2024 21:54:07 -0400 |
parents | 6000f5b25c9b |
children | f4733654f144 |