--- a/mercurial/hgweb/protocol.py Sun Nov 01 15:09:35 2015 +0900
+++ b/mercurial/hgweb/protocol.py Sat Oct 31 22:07:40 2015 +0900
@@ -5,9 +5,21 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-import cgi, cStringIO, zlib, urllib
-from mercurial import util, wireproto
-from common import HTTP_OK
+from __future__ import absolute_import
+
+import cStringIO
+import cgi
+import urllib
+import zlib
+
+from .common import (
+ HTTP_OK,
+)
+
+from .. import (
+ util,
+ wireproto,
+)
HGTYPE = 'application/mercurial-0.1'
HGERRTYPE = 'application/hg-error'