comparison mercurial/scmwindows.py @ 43768:fe73ec69350e

windows: suppress pytype warnings for Windows imports and functions This should allow the modules to not be excluded, and not generate complaints on non Windows platforms. Differential Revision: https://phab.mercurial-scm.org/D7510
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 22 Nov 2019 23:55:57 -0500
parents 687b865b95ad
children 29adf0a087a1
comparison
equal deleted inserted replaced
43767:f3b23d5c15fd 43768:fe73ec69350e
8 util, 8 util,
9 win32, 9 win32,
10 ) 10 )
11 11
12 try: 12 try:
13 import _winreg as winreg 13 import _winreg as winreg # pytype: disable=import-error
14 14
15 winreg.CloseKey 15 winreg.CloseKey
16 except ImportError: 16 except ImportError:
17 import winreg 17 # py2 only
18 import winreg # pytype: disable=import-error
18 19
19 # MS-DOS 'more' is the only pager available by default on Windows. 20 # MS-DOS 'more' is the only pager available by default on Windows.
20 fallbackpager = b'more' 21 fallbackpager = b'more'
21 22
22 23