Show More
@@ -14,6 +14,7 b' import re' | |||
|
14 | 14 | import stat |
|
15 | 15 | import string |
|
16 | 16 | import sys |
|
17 | import winreg # pytype: disable=import-error | |
|
17 | 18 | |
|
18 | 19 | from .i18n import _ |
|
19 | 20 | from .pycompat import getattr |
@@ -25,13 +26,6 b' from . import (' | |||
|
25 | 26 | win32, |
|
26 | 27 | ) |
|
27 | 28 | |
|
28 | try: | |
|
29 | import _winreg as winreg # pytype: disable=import-error | |
|
30 | ||
|
31 | winreg.CloseKey | |
|
32 | except ImportError: | |
|
33 | # py2 only | |
|
34 | import winreg # pytype: disable=import-error | |
|
35 | 29 | |
|
36 | 30 | osutil = policy.importmod('osutil') |
|
37 | 31 |
General Comments 0
You need to be logged in to leave comments.
Login now