review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
@@ -96,6 +96,9 @@ class _TrackingMixin:
|
||||
def close(self) -> None: # type: ignore[misc]
|
||||
with _live_lock:
|
||||
path = getattr(self, "_hermes_tracked_path", None)
|
||||
# Close first; untrack only once the descriptor is actually gone. Untracking before a failing
|
||||
# close (e.g. cross-thread ProgrammingError) leaves the FD open while the byte-probe guard
|
||||
# thinks nothing is live — see #75629.
|
||||
super().close() # type: ignore[misc]
|
||||
if path is not None:
|
||||
self._hermes_tracked_path = None
|
||||
|
||||
Reference in New Issue
Block a user