Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 7948:de377b1a9a84
move encoding bits from util to encoding
In addition to cleaning up util, this gets rid of some circular dependencies.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 03 Apr 2009 14:51:48 -0500 |
parents | 4a4c7f6a5912 |
children | aa983c3d94a9 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Apr 03 13:20:52 2009 -0500 +++ b/mercurial/hgweb/hgweb_mod.py Fri Apr 03 14:51:48 2009 -0500 @@ -7,7 +7,7 @@ # of the GNU General Public License, incorporated herein by reference. import os -from mercurial import ui, hg, util, hook, error +from mercurial import ui, hg, util, hook, error, encoding from mercurial import templater, templatefilters from common import get_mtime, style_map, ErrorResponse from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR @@ -65,7 +65,7 @@ self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) self.maxfiles = int(self.config("web", "maxfiles", 10)) self.allowpull = self.configbool("web", "allowpull", True) - self.encoding = self.config("web", "encoding", util._encoding) + self.encoding = self.config("web", "encoding", encoding.encoding) def run(self): if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."):