Mercurial > hg-stable
comparison setup.py @ 51935: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 | 4dc1fc2b2f3a |
children | f0e07efc199f |
comparison
equal
deleted
inserted
replaced
51934:499b19683c1b | 51935:159854151f0f |
---|