comparison hgext/purge.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 0caac68a5c3c
children 1c5810ce737e
comparison
equal deleted inserted replaced
51737:48eb51494a7a 51738:d17578f96e60