obsolete: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 12 Dec 2015 13:30:47 -0500
changeset 27332 04f346b8768f
parent 27331 35e69407b1ac
child 27333 2c60b4b2a0de
obsolete: use absolute_import
mercurial/obsolete.py
tests/test-check-py3-compat.t
--- a/mercurial/obsolete.py	Sat Dec 12 13:27:31 2015 -0500
+++ b/mercurial/obsolete.py	Sat Dec 12 13:30:47 2015 -0500
@@ -67,10 +67,20 @@
 comment associated with each format for details.
 
 """
-import errno, struct
-import util, base85, node, parsers, error
-import phases
-from i18n import _
+from __future__ import absolute_import
+
+import errno
+import struct
+
+from .i18n import _
+from . import (
+    base85,
+    error,
+    node,
+    parsers,
+    phases,
+    util,
+)
 
 _pack = struct.pack
 _unpack = struct.unpack
--- a/tests/test-check-py3-compat.t	Sat Dec 12 13:27:31 2015 -0500
+++ b/tests/test-check-py3-compat.t	Sat Dec 12 13:30:47 2015 -0500
@@ -122,7 +122,6 @@
   mercurial/mail.py requires print_function
   mercurial/manifest.py not using absolute_import
   mercurial/mdiff.py not using absolute_import
-  mercurial/obsolete.py not using absolute_import
   mercurial/patch.py not using absolute_import
   mercurial/pure/base85.py not using absolute_import
   mercurial/pure/bdiff.py not using absolute_import