changeset 29125:9b12517a7081

py3: make hgext/hgk.py use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 06 May 2016 21:50:40 +0530
parents 555ab813c237
children 7dd5d19c9773
files hgext/hgk.py tests/test-check-py3-compat.t
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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