Mercurial > hg
comparison mercurial/hgweb/webutil.py @ 27007:c8cbef073645
hgweb: alias ui module as uimod
It will be enforced by the import checker.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Nov 2015 13:58:32 +0900 |
parents | 41957e50e109 |
children | 7f19f331ef59 |
comparison
equal
deleted
inserted
replaced
27006:9d58dc193c46 | 27007:c8cbef073645 |
---|---|
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, copy | 9 import os, copy |
10 import re | 10 import re |
11 from mercurial import match, patch, error, ui, util, pathutil, context | 11 from mercurial import match, patch, error, util, pathutil, context |
12 from mercurial import ui as uimod | |
12 from mercurial.i18n import _ | 13 from mercurial.i18n import _ |
13 from mercurial.node import hex, nullid, short | 14 from mercurial.node import hex, nullid, short |
14 from mercurial.templatefilters import revescape | 15 from mercurial.templatefilters import revescape |
15 from common import ErrorResponse, paritygen | 16 from common import ErrorResponse, paritygen |
16 from common import HTTP_NOT_FOUND | 17 from common import HTTP_NOT_FOUND |
535 separator = self.start | 536 separator = self.start |
536 for key, value in sorted(self.vars.iteritems()): | 537 for key, value in sorted(self.vars.iteritems()): |
537 yield {'name': key, 'value': str(value), 'separator': separator} | 538 yield {'name': key, 'value': str(value), 'separator': separator} |
538 separator = '&' | 539 separator = '&' |
539 | 540 |
540 class wsgiui(ui.ui): | 541 class wsgiui(uimod.ui): |
541 # default termwidth breaks under mod_wsgi | 542 # default termwidth breaks under mod_wsgi |
542 def termwidth(self): | 543 def termwidth(self): |
543 return 80 | 544 return 80 |
544 | 545 |
545 def getwebsubs(repo): | 546 def getwebsubs(repo): |