Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 32406: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 |
line wrap: on
line diff
--- a/mercurial/windows.py Fri Aug 12 11:30:17 2016 +0900 +++ b/mercurial/windows.py Fri Aug 12 11:35:17 2016 +0900 @@ -17,7 +17,7 @@ from .i18n import _ from . import ( encoding, - osutil, + policy, pycompat, win32, ) @@ -28,6 +28,8 @@ except ImportError: import winreg +osutil = policy.importmod(r'osutil') + executablepath = win32.executablepath getuser = win32.getuser hidewindow = win32.hidewindow