Show More
@@ -303,9 +303,13 b' class HTTPPasswordHandler(object):' | |||||
303 | return url_user, url_passwd, self.SRC_URL, base_url |
|
303 | return url_user, url_passwd, self.SRC_URL, base_url | |
304 |
|
304 | |||
305 | # Extract data from urllib (in case it was already stored) |
|
305 | # Extract data from urllib (in case it was already stored) | |
306 | urllib_user, urllib_pwd \ |
|
306 | if isinstance(pwmgr, urllib2.HTTPPasswordMgrWithDefaultRealm): | |
307 | = urllib2.HTTPPasswordMgrWithDefaultRealm.find_user_password( |
|
307 | urllib_user, urllib_pwd = \ | |
308 | pwmgr, realm, authuri) |
|
308 | urllib2.HTTPPasswordMgrWithDefaultRealm.find_user_password( | |
|
309 | pwmgr, realm, authuri) | |||
|
310 | else: | |||
|
311 | urllib_user, urllib_pwd = pwmgr.passwddb.find_user_password( | |||
|
312 | realm, authuri) | |||
309 | if urllib_user and urllib_pwd: |
|
313 | if urllib_user and urllib_pwd: | |
310 | return urllib_user, urllib_pwd, self.SRC_URLCACHE, base_url |
|
314 | return urllib_user, urllib_pwd, self.SRC_URLCACHE, base_url | |
311 |
|
315 |
General Comments 0
You need to be logged in to leave comments.
Login now