Mercurial > hg
comparison tests/test-hgweb-auth.py @ 28807:736f64b23a24
test-hgweb-auth: alias ui as uimod
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 05 Apr 2016 23:20:04 +0900 |
parents | c2ba5a810fa1 |
children | 10c2ce44c35d |
comparison
equal
deleted
inserted
replaced
28806:d26c4af27978 | 28807:736f64b23a24 |
---|---|
1 from __future__ import absolute_import, print_function | 1 from __future__ import absolute_import, print_function |
2 | 2 |
3 from mercurial import demandimport; demandimport.enable() | 3 from mercurial import demandimport; demandimport.enable() |
4 import urllib2 | 4 import urllib2 |
5 from mercurial import ( | 5 from mercurial import ( |
6 ui, | 6 ui as uimod, |
7 url, | 7 url, |
8 util, | 8 util, |
9 ) | 9 ) |
10 from mercurial.error import ( | 10 from mercurial.error import ( |
11 Abort, | 11 Abort, |
12 ) | 12 ) |
13 | 13 |
14 class myui(ui.ui): | 14 class myui(uimod.ui): |
15 def interactive(self): | 15 def interactive(self): |
16 return False | 16 return False |
17 | 17 |
18 origui = myui() | 18 origui = myui() |
19 | 19 |