py3: make hgext/graphlog.py use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 06 May 2016 21:48:17 +0530
changeset 29123 0e6b5a5aca22
parent 29122 660d8d4ec7aa
child 29124 555ab813c237
py3: make hgext/graphlog.py use absolute_import
hgext/graphlog.py
tests/test-check-py3-compat.t
--- a/hgext/graphlog.py	Sat May 07 19:59:30 2016 +0200
+++ b/hgext/graphlog.py	Fri May 06 21:48:17 2016 +0530
@@ -15,8 +15,13 @@
 revision graph is also shown.
 '''
 
+from __future__ import absolute_import
+
 from mercurial.i18n import _
-from mercurial import cmdutil, commands
+from mercurial import (
+    cmdutil,
+    commands,
+)
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
--- a/tests/test-check-py3-compat.t	Sat May 07 19:59:30 2016 +0200
+++ b/tests/test-check-py3-compat.t	Fri May 06 21:48:17 2016 +0530
@@ -8,7 +8,6 @@
   hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
   hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
   hgext/gpg.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