Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/request.py @ 27046:37fcfe52c68c
hgweb: use absolute_import
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 31 Oct 2015 22:07:40 +0900 |
parents | 7c1b4840c2cd |
children | 482d6f6dba91 |
line wrap: on
line diff
--- a/mercurial/hgweb/request.py Sun Nov 01 15:09:35 2015 +0900 +++ b/mercurial/hgweb/request.py Sat Oct 31 22:07:40 2015 +0900 @@ -6,9 +6,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 socket, cgi, errno -from mercurial import util -from common import ErrorResponse, statusmessage, HTTP_NOT_MODIFIED +from __future__ import absolute_import + +import cgi +import errno +import socket + +from .common import ( + ErrorResponse, + HTTP_NOT_MODIFIED, + statusmessage, +) + +from .. import ( + util, +) shortcuts = { 'cl': [('cmd', ['changelog']), ('rev', None)],