Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 27360:6daa795ed32f
windows: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 12 Dec 2015 23:19:38 -0800 |
parents | 3686fa2b8eee |
children | 912255f8f087 |
line wrap: on
line diff
--- a/mercurial/windows.py Sat Dec 12 23:17:22 2015 -0800 +++ b/mercurial/windows.py Sat Dec 12 23:19:38 2015 -0800 @@ -5,11 +5,23 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -import osutil, encoding -import errno, msvcrt, os, re, stat, sys, _winreg +from __future__ import absolute_import +import _winreg +import errno +import msvcrt +import os +import re +import stat +import sys import win32 + +from .i18n import _ +from . import ( + encoding, + osutil, +) + executablepath = win32.executablepath getuser = win32.getuser hidewindow = win32.hidewindow