py3: make hgext/hgk.py use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 06 May 2016 21:50:40 +0530
changeset 29125 9b12517a7081
parent 29124 555ab813c237
child 29126 7dd5d19c9773
py3: make hgext/hgk.py use absolute_import
hgext/hgk.py
tests/test-check-py3-compat.t
--- a/hgext/hgk.py	Fri May 06 21:46:17 2016 +0530
+++ b/hgext/hgk.py	Fri May 06 21:50:40 2016 +0530
@@ -34,9 +34,21 @@
 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 import (
+    cmdutil,
+    commands,
+    obsolete,
+    patch,
+    scmutil,
+)
+from mercurial.node import (
+    nullid,
+    nullrev,
+    short,
+)
 from mercurial.i18n import _
 
 cmdtable = {}
--- a/tests/test-check-py3-compat.t	Fri May 06 21:46:17 2016 +0530
+++ b/tests/test-check-py3-compat.t	Fri May 06 21:50:40 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/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/histedit.py not using absolute_import