Mercurial > hg
changeset 28380:ad266834251b
relink: use absolute_import
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 02 Mar 2016 21:36:14 +0000 |
parents | 27a9032374a7 |
children | 44ffbb2a4f59 |
files | hgext/relink.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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