osutil: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 12 Dec 2015 13:46:32 -0500
changeset 27338 810337ae1b76
parent 27337 9a17576103a4
child 27339 6ab8c6511a6a
osutil: use absolute_import
mercurial/pure/osutil.py
tests/test-check-py3-compat.t
--- a/mercurial/pure/osutil.py	Sat Dec 12 13:37:56 2015 -0500
+++ b/mercurial/pure/osutil.py	Sat Dec 12 13:46:32 2015 -0500
@@ -5,6 +5,8 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
+from __future__ import absolute_import
+
 import os
 import stat as statmod
 
@@ -58,7 +60,8 @@
 if os.name != 'nt':
     posixfile = open
 else:
-    import ctypes, msvcrt
+    import ctypes
+    import msvcrt
 
     _kernel32 = ctypes.windll.kernel32
 
--- a/tests/test-check-py3-compat.t	Sat Dec 12 13:37:56 2015 -0500
+++ b/tests/test-check-py3-compat.t	Sat Dec 12 13:46:32 2015 -0500
@@ -122,7 +122,6 @@
   mercurial/manifest.py not using absolute_import
   mercurial/mdiff.py not using absolute_import
   mercurial/patch.py not using absolute_import
-  mercurial/pure/osutil.py not using absolute_import
   mercurial/pure/parsers.py not using absolute_import
   mercurial/pvec.py not using absolute_import
   mercurial/py3kcompat.py not using absolute_import