Mercurial > hg
diff i18n/ru.po @ 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 | d4ba4d51f85f |
children |