--- a/hgext/highlight/__init__.py Fri Jul 01 19:17:45 2016 -0700
+++ b/hgext/highlight/__init__.py Sun Jul 03 22:28:24 2016 +0530
@@ -26,9 +26,21 @@
match (even matches with a low confidence score) will be used.
"""
-import highlight
-from mercurial.hgweb import webcommands, webutil, common
-from mercurial import extensions, encoding, fileset
+from __future__ import absolute_import
+
+from . import highlight
+from mercurial.hgweb import (
+ common,
+ webcommands,
+ webutil,
+)
+
+from mercurial import (
+ encoding,
+ extensions,
+ fileset,
+)
+
# Note for extension authors: ONLY specify testedwith = 'internal' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or