typing: suppress an name-error warning in `mercurial/windows.py`
Newly caught by pytype 2021-09-09.
Differential Revision: https://phab.mercurial-scm.org/D11469
--- a/mercurial/windows.py Mon Sep 20 10:44:25 2021 -0400
+++ b/mercurial/windows.py Mon Sep 20 10:45:18 2021 -0400
@@ -175,7 +175,7 @@
return mixedfilemodewrapper(fp)
return fp
- except WindowsError as err:
+ except WindowsError as err: # pytype: disable=name-error
# convert to a friendlier exception
raise IOError(
err.errno, '%s: %s' % (encoding.strfromlocal(name), err.strerror)