Patchwork [6,of,7] py3: use absolute_import in graphlog.py

login
register
mail settings
Submitter roby roby
Date April 17, 2016, 5:17 p.m.
Message ID <c6c5a02fe55672055d74.1460913425@roby>
Download mbox | patch
Permalink /patch/14711/
State Deferred
Headers show

Comments

roby roby - April 17, 2016, 5:17 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1460912322 -10800
#      Sun Apr 17 19:58:42 2016 +0300
# Node ID c6c5a02fe55672055d74551a0a00730ada9f871a
# Parent  5ee7deb2278d49012db0b6af4121c3671c57ffea
py3: use absolute_import in graphlog.py

Patch

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