diff mercurial/hgweb/wsgicgi.py @ 27046:37fcfe52c68c

hgweb: use absolute_import
author Yuya Nishihara <yuya@tcha.org>
date Sat, 31 Oct 2015 22:07:40 +0900
parents e8efcc8ff5c0
children 39d13b8c101d
line wrap: on
line diff
--- a/mercurial/hgweb/wsgicgi.py	Sun Nov 01 15:09:35 2015 +0900
+++ b/mercurial/hgweb/wsgicgi.py	Sat Oct 31 22:07:40 2015 +0900
@@ -8,9 +8,18 @@
 # This was originally copied from the public domain code at
 # http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side
 
-import os, sys
-from mercurial import util
-from mercurial.hgweb import common
+from __future__ import absolute_import
+
+import os
+import sys
+
+from .. import (
+    util,
+)
+
+from . import (
+    common,
+)
 
 def launch(application):
     util.setbinary(sys.stdin)