##// END OF EJS Templates
test-hgweb-auth: stop direct symbol import of mercurial.error.Abort
Yuya Nishihara -
r28808:10c2ce44 default
parent child Browse files
Show More
@@ -3,13 +3,11 b' from __future__ import absolute_import, '
3 3 from mercurial import demandimport; demandimport.enable()
4 4 import urllib2
5 5 from mercurial import (
6 error,
6 7 ui as uimod,
7 8 url,
8 9 util,
9 10 )
10 from mercurial.error import (
11 Abort,
12 )
13 11
14 12 class myui(uimod.ui):
15 13 def interactive(self):
@@ -48,7 +46,7 b' def test(auth, urls=None):'
48 46 if authinfo is not None:
49 47 pm.add_password(*authinfo)
50 48 print(' ', pm.find_user_password('test', u))
51 except Abort:
49 except error.Abort:
52 50 print(' ','abort')
53 51
54 52 if not urls:
General Comments 0
You need to be logged in to leave comments. Login now