From patchwork Sun Apr 17 17:17:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,7] py3: use absolute_import in graphlog.py From: roby roby X-Patchwork-Id: 14711 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 17 Apr 2016 20:17:05 +0300 # HG changeset patch # User Robert Stanca # Date 1460912322 -10800 # Sun Apr 17 19:58:42 2016 +0300 # Node ID c6c5a02fe55672055d74551a0a00730ada9f871a # Parent 5ee7deb2278d49012db0b6af4121c3671c57ffea py3: use absolute_import in graphlog.py diff -r 5ee7deb2278d -r c6c5a02fe556 hgext/graphlog.py --- a/hgext/graphlog.py Sun Apr 17 19:57:53 2016 +0300 +++ b/hgext/graphlog.py Sun Apr 17 19:58:42 2016 +0300 @@ -15,8 +15,14 @@ revision graph is also shown. ''' -from mercurial.i18n import _ -from mercurial import cmdutil, commands +from __future__ import absolute_import +from mercurial.i18n import ( + _, +) +from mercurial import ( + cmdutil, + commands, +) cmdtable = {} command = cmdutil.command(cmdtable) diff -r 5ee7deb2278d -r c6c5a02fe556 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sun Apr 17 19:57:53 2016 +0300 +++ b/tests/test-check-py3-compat.t Sun Apr 17 19:58:42 2016 +0300 @@ -15,7 +15,6 @@ hgext/fsmonitor/pywatchman/__init__.py requires print_function hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import hgext/fsmonitor/pywatchman/pybser.py not using absolute_import - hgext/graphlog.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