comparison mercurial/revlog.py @ 47413:5e44936b82be

revlog: fix a typo closing the wrong file Caught by pytype as possibly being None, but the file is closed in the previous conditional. Differential Revision: https://phab.mercurial-scm.org/D10874
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 12 Jun 2021 00:50:03 -0400
parents f7f082bc0e7c
children 5fbac82a8780
comparison
equal deleted inserted replaced
47412:c887bab2dccf 47413:5e44936b82be
2241 finally: 2241 finally:
2242 self._writinghandles = None 2242 self._writinghandles = None
2243 if dfh is not None: 2243 if dfh is not None:
2244 dfh.close() 2244 dfh.close()
2245 if sdfh is not None: 2245 if sdfh is not None:
2246 dfh.close() 2246 sdfh.close()
2247 # closing the index file last to avoid exposing referent to 2247 # closing the index file last to avoid exposing referent to
2248 # potential unflushed data content. 2248 # potential unflushed data content.
2249 if ifh is not None: 2249 if ifh is not None:
2250 ifh.close() 2250 ifh.close()
2251 2251