From patchwork Sun Apr 17 17:17:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7,of,7] py3: use absolute_import in hgk.py From: roby roby X-Patchwork-Id: 14712 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 17 Apr 2016 20:17:06 +0300 # HG changeset patch # User Robert Stanca # Date 1460912371 -10800 # Sun Apr 17 19:59:31 2016 +0300 # Node ID ab63599d55a290f5bdfdbc28d1b4c1b5b9c33ad0 # Parent c6c5a02fe55672055d74551a0a00730ada9f871a py3: use absolute_import in hgk.py diff -r c6c5a02fe556 -r ab63599d55a2 hgext/hgk.py --- a/hgext/hgk.py Sun Apr 17 19:58:42 2016 +0300 +++ b/hgext/hgk.py Sun Apr 17 19:59:31 2016 +0300 @@ -34,10 +34,22 @@ vdiff on hovered and selected revisions. ''' +from __future__ import absolute_import import os -from mercurial import cmdutil, commands, patch, scmutil, obsolete -from mercurial.node import nullid, nullrev, short -from mercurial.i18n import _ +from mercurial.i18n import ( + _, +) +from mercurial import ( + cmdutil, + commands, + node, + obsolete, + patch, + scmutil, +) +nullid = node.nullid +nullrev = node.nullrev +short = node.short cmdtable = {} command = cmdutil.command(cmdtable) diff -r c6c5a02fe556 -r ab63599d55a2 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sun Apr 17 19:58:42 2016 +0300 +++ b/tests/test-check-py3-compat.t Sun Apr 17 19:59:31 2016 +0300 @@ -16,7 +16,6 @@ hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import hgext/fsmonitor/pywatchman/pybser.py not using absolute_import hgext/hgcia.py not using absolute_import - hgext/hgk.py not using absolute_import hgext/highlight/__init__.py not using absolute_import hgext/highlight/highlight.py not using absolute_import hgext/largefiles/__init__.py not using absolute_import