Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 20034:1e5b38a919dd
cleanup: move stdlib imports to their own import statement
There are a few warnings still produced by my import checker, but
those are false positives produced by modules that share a name with
stdlib modules.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 06 Nov 2013 16:48:06 -0500 |
parents | 1dba26575dba |
children | 507919a34c5b |
comparison
equal
deleted
inserted
replaced
20033:f962870712da | 20034:1e5b38a919dd |
---|---|
4 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> | 4 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
5 # | 5 # |
6 # This software may be used and distributed according to the terms of the | 6 # This software may be used and distributed according to the terms of the |
7 # GNU General Public License version 2 or any later version. | 7 # GNU General Public License version 2 or any later version. |
8 | 8 |
9 import os | 9 import os, re |
10 from mercurial import ui, hg, hook, error, encoding, templater, util, repoview | 10 from mercurial import ui, hg, hook, error, encoding, templater, util, repoview |
11 from mercurial.templatefilters import websub | 11 from mercurial.templatefilters import websub |
12 from mercurial.i18n import _ | 12 from mercurial.i18n import _ |
13 from common import get_stat, ErrorResponse, permhooks, caching | 13 from common import get_stat, ErrorResponse, permhooks, caching |
14 from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST | 14 from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST |
15 from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR | 15 from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR |
16 from request import wsgirequest | 16 from request import wsgirequest |
17 import webcommands, protocol, webutil, re | 17 import webcommands, protocol, webutil |
18 | 18 |
19 perms = { | 19 perms = { |
20 'changegroup': 'pull', | 20 'changegroup': 'pull', |
21 'changegroupsubset': 'pull', | 21 'changegroupsubset': 'pull', |
22 'getbundle': 'pull', | 22 'getbundle': 'pull', |