typing: suppress an name-error warning in `mercurial/windows.py`
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 20 Sep 2021 10:45:18 -0400
changeset 48009 94d4a3f78e99
parent 48008 c0588d389c5f
child 48010 ae79611e3115
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
mercurial/windows.py
--- 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)