mercurial/scmwindows.py
branchstable
changeset 49366 288de6f5d724
parent 48986 d500df2e8034
child 49808 7a4143428db7
--- a/mercurial/scmwindows.py	Thu Jun 16 15:15:03 2022 +0200
+++ b/mercurial/scmwindows.py	Thu Jun 16 15:28:54 2022 +0200
@@ -1,5 +1,3 @@
-from __future__ import absolute_import
-
 import os
 
 from . import (
@@ -54,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)