# HG changeset patch # User timeless # Date 2016-03-02 21:36:14 # Node ID ad266834251b0b19536f9fbf08a244d1341ad31e # Parent 27a9032374a7067c73166bb0166606eb34bba7f3 relink: use absolute_import diff --git a/hgext/relink.py b/hgext/relink.py --- a/hgext/relink.py +++ b/hgext/relink.py @@ -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) diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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