tests/test-hgweb-auth.py
changeset 19378 9de689d20230
parent 15025 0593e8f81c71
child 28747 779addce6910
equal deleted inserted replaced
19377:0cb996ee8c6d 19378:9de689d20230
    39             pm = url.passwordmgr(ui)
    39             pm = url.passwordmgr(ui)
    40             u, authinfo = util.url(uri).authinfo()
    40             u, authinfo = util.url(uri).authinfo()
    41             if authinfo is not None:
    41             if authinfo is not None:
    42                 pm.add_password(*authinfo)
    42                 pm.add_password(*authinfo)
    43             print '    ', pm.find_user_password('test', u)
    43             print '    ', pm.find_user_password('test', u)
    44         except Abort, e:
    44         except Abort:
    45             print 'abort'
    45             print 'abort'
    46 
    46 
    47     if not urls:
    47     if not urls:
    48         urls = [
    48         urls = [
    49             'http://example.org/foo',
    49             'http://example.org/foo',