changeset 48032:94d4a3f78e99

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
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Sep 2021 10:45:18 -0400
parents c0588d389c5f
children ae79611e3115
files mercurial/windows.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)