Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmwindows.py @ 49065:d500df2e8034
pytype: disable a few errors about Windows specific module attributes
These were flagged by pytype 2022.03.21.
Differential Revision: https://phab.mercurial-scm.org/D12401
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Mar 2022 13:51:40 -0400 |
parents | 6000f5b25c9b |
children | 7a4143428db7 |
line wrap: on
line diff
--- a/mercurial/scmwindows.py Sat Mar 19 15:44:38 2022 +0100 +++ b/mercurial/scmwindows.py Wed Mar 23 13:51:40 2022 -0400 @@ -52,7 +52,11 @@ # next look for a system rcpath in the registry value = util.lookupreg( - b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE + # pytype: disable=module-attr + b'SOFTWARE\\Mercurial', + None, + winreg.HKEY_LOCAL_MACHINE + # pytype: enable=module-attr ) if value and isinstance(value, bytes): value = util.localpath(value)