relink: use absolute_import
authortimeless <timeless@mozdev.org>
Wed, 02 Mar 2016 21:36:14 +0000
changeset 28380 ad266834251b
parent 28379 27a9032374a7
child 28381 44ffbb2a4f59
relink: use absolute_import
hgext/relink.py
tests/test-check-py3-compat.t
--- a/hgext/relink.py	Wed Mar 02 21:33:55 2016 +0000
+++ b/hgext/relink.py	Wed Mar 02 21:36:14 2016 +0000
@@ -6,10 +6,18 @@
 # GNU General Public License version 2 or any later version.
 
 """recreates hardlinks between repository clones"""
+from __future__ import absolute_import
 
-from mercurial import cmdutil, hg, util, error
+import os
+import stat
+
+from mercurial import (
+    cmdutil,
+    error,
+    hg,
+    util,
+)
 from mercurial.i18n import _
-import os, stat
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t	Wed Mar 02 21:33:55 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 21:36:14 2016 +0000
@@ -59,7 +59,6 @@
   hgext/purge.py not using absolute_import
   hgext/rebase.py not using absolute_import
   hgext/record.py not using absolute_import
-  hgext/relink.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/transplant.py not using absolute_import
   hgext/win32mbcs.py not using absolute_import