Mercurial > hg
comparison mercurial/windows.py @ 32367:a9c71d578a1c
osutil: switch to policy importer
"make clean" is recommended to test this change, though C API compatibility
should be preserved.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 12 Aug 2016 11:35:17 +0900 |
parents | bd872f64a8ba |
children | 605f124d1146 |
comparison
equal
deleted
inserted
replaced
32366:8e0327dae3f4 | 32367:a9c71d578a1c |
---|---|
15 import sys | 15 import sys |
16 | 16 |
17 from .i18n import _ | 17 from .i18n import _ |
18 from . import ( | 18 from . import ( |
19 encoding, | 19 encoding, |
20 osutil, | 20 policy, |
21 pycompat, | 21 pycompat, |
22 win32, | 22 win32, |
23 ) | 23 ) |
24 | 24 |
25 try: | 25 try: |
26 import _winreg as winreg | 26 import _winreg as winreg |
27 winreg.CloseKey | 27 winreg.CloseKey |
28 except ImportError: | 28 except ImportError: |
29 import winreg | 29 import winreg |
30 | |
31 osutil = policy.importmod(r'osutil') | |
30 | 32 |
31 executablepath = win32.executablepath | 33 executablepath = win32.executablepath |
32 getuser = win32.getuser | 34 getuser = win32.getuser |
33 hidewindow = win32.hidewindow | 35 hidewindow = win32.hidewindow |
34 makedir = win32.makedir | 36 makedir = win32.makedir |