Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 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 | 4162f6b40f2c |
children | 6000f5b25c9b |
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)