Patchwork [4,of,8] relink: use absolute_import

login
register
mail settings
Submitter timeless@mozdev.org
Date March 2, 2016, 9:55 p.m.
Message ID <f948049750972b71f738.1456955749@waste.org>
Download mbox | patch
Permalink /patch/13567/
State Accepted
Delegated to: Augie Fackler
Headers show

Comments

timeless@mozdev.org - March 2, 2016, 9:55 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1456954574 0
#      Wed Mar 02 21:36:14 2016 +0000
# Node ID f948049750972b71f738c438663db56a01f53335
# Parent  2d8ef1c7ff0f1d20f916825e476ba12afc8d4bfa
relink: use absolute_import

Patch

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
@@ -78,7 +78,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