[PATCH 5 of 8] py3: make hgext/hgk.py use absolute_import
Pulkit Goyal
7895pulkit at gmail.com
Fri May 6 12:52:30 EDT 2016
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1462551640 -19800
# Fri May 06 21:50:40 2016 +0530
# Node ID 35bd4701a62cf1220950741d5df602a8342cd178
# Parent 3c349f186ef4762088437a1ec28f2c704893d662
py3: make hgext/hgk.py use absolute_import
diff --git a/hgext/hgk.py b/hgext/hgk.py
--- a/hgext/hgk.py
+++ b/hgext/hgk.py
@@ -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 = {}
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -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
More information about the Mercurial-devel
mailing list