Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/protocol.py @ 27046:37fcfe52c68c
hgweb: use absolute_import
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 31 Oct 2015 22:07:40 +0900 |
parents | 8d477543882b |
children | fd2acc5046f6 |
comparison
equal
deleted
inserted
replaced
27045:eac72c1e1e0d | 27046:37fcfe52c68c |
---|---|
3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> | 3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 import cgi, cStringIO, zlib, urllib | 8 from __future__ import absolute_import |
9 from mercurial import util, wireproto | 9 |
10 from common import HTTP_OK | 10 import cStringIO |
11 import cgi | |
12 import urllib | |
13 import zlib | |
14 | |
15 from .common import ( | |
16 HTTP_OK, | |
17 ) | |
18 | |
19 from .. import ( | |
20 util, | |
21 wireproto, | |
22 ) | |
11 | 23 |
12 HGTYPE = 'application/mercurial-0.1' | 24 HGTYPE = 'application/mercurial-0.1' |
13 HGERRTYPE = 'application/hg-error' | 25 HGERRTYPE = 'application/hg-error' |
14 | 26 |
15 class webproto(wireproto.abstractserverproto): | 27 class webproto(wireproto.abstractserverproto): |