Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-hgweb-auth.py @ 19378:9de689d20230
cleanup: drop unused variables and an unused import
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Mon, 01 Jul 2013 20:48:56 +0200 |
parents | 0593e8f81c71 |
children | 779addce6910 |
comparison
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', |