Show More
@@ -3,13 +3,11 b' from __future__ import absolute_import, ' | |||||
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 | error, | |||
6 | ui as uimod, |
|
7 | ui as uimod, | |
7 | url, |
|
8 | url, | |
8 | util, |
|
9 | util, | |
9 | ) |
|
10 | ) | |
10 | from mercurial.error import ( |
|
|||
11 | Abort, |
|
|||
12 | ) |
|
|||
13 |
|
11 | |||
14 | class myui(uimod.ui): |
|
12 | class myui(uimod.ui): | |
15 | def interactive(self): |
|
13 | def interactive(self): | |
@@ -48,7 +46,7 b' def test(auth, urls=None):' | |||||
48 | if authinfo is not None: |
|
46 | if authinfo is not None: | |
49 | pm.add_password(*authinfo) |
|
47 | pm.add_password(*authinfo) | |
50 | print(' ', pm.find_user_password('test', u)) |
|
48 | print(' ', pm.find_user_password('test', u)) | |
51 | except Abort: |
|
49 | except error.Abort: | |
52 | print(' ','abort') |
|
50 | print(' ','abort') | |
53 |
|
51 | |||
54 | if not urls: |
|
52 | if not urls: |
General Comments 0
You need to be logged in to leave comments.
Login now