( )⚙ D11470 util: avoid a name-error warning in the `mmapread` exception handler

This is an archive of the discontinued Mercurial Phabricator instance.

util: avoid a name-error warning in the `mmapread` exception handler
ClosedPublic

Authored by mharbison72 on Sep 21 2021, 11:38 AM.

Details

Summary

Newly caught by pytype 2021-09-09.

File "/mnt/c/Users/Matt/hg/mercurial/util.py", line 458, in mmapread: Name 'fd' is not defined [name-error]

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage