Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 27046:37fcfe52c68c
hgweb: use absolute_import
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 31 Oct 2015 22:07:40 +0900 |
parents | eac72c1e1e0d |
children | f97a0bcfd7a1 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Sun Nov 01 15:09:35 2015 +0900 +++ b/mercurial/hgweb/hgweb_mod.py Sat Oct 31 22:07:40 2015 +0900 @@ -6,16 +6,41 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +from __future__ import absolute_import + import contextlib import os -from mercurial import hg, hook, error, encoding, templater, util, repoview -from mercurial import ui as uimod -from mercurial import templatefilters -from common import ErrorResponse, permhooks, caching -from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST -from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR -from request import wsgirequest -import webcommands, protocol, webutil, wsgicgi + +from .common import ( + ErrorResponse, + HTTP_BAD_REQUEST, + HTTP_NOT_FOUND, + HTTP_NOT_MODIFIED, + HTTP_OK, + HTTP_SERVER_ERROR, + caching, + permhooks, +) +from .request import wsgirequest + +from .. import ( + encoding, + error, + hg, + hook, + repoview, + templatefilters, + templater, + ui as uimod, + util, +) + +from . import ( + protocol, + webcommands, + webutil, + wsgicgi, +) perms = { 'changegroup': 'pull',