mercurial/scmwindows.py
changeset 43788 fe73ec69350e
parent 43077 687b865b95ad
child 43811 29adf0a087a1
--- a/mercurial/scmwindows.py	Sat Nov 23 16:54:59 2019 -0800
+++ b/mercurial/scmwindows.py	Fri Nov 22 23:55:57 2019 -0500
@@ -10,11 +10,12 @@
 )
 
 try:
-    import _winreg as winreg
+    import _winreg as winreg  # pytype: disable=import-error
 
     winreg.CloseKey
 except ImportError:
-    import winreg
+    # py2 only
+    import winreg  # pytype: disable=import-error
 
 # MS-DOS 'more' is the only pager available by default on Windows.
 fallbackpager = b'more'