comparison mercurial/help.py @ 51898:159854151f0f

statichttprepo: use a context manager to handle a file descriptor I'm not sure if this should be reduced to `vfs.exists()`. That would seem to be equivalent code (since the result of the read is ignored, so we can't tell if the file actually has content, which has been the state of things going back to 98b6c3dde237), but this is at least safer file descriptor handling.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 25 Sep 2024 00:52:44 -0400
parents f4733654f144
children
comparison
equal deleted inserted replaced
51897:499b19683c1b 51898:159854151f0f