Show More
@@ -487,6 +487,8 b' def getauthinfo(path):' | |||||
487 | authinfo = None |
|
487 | authinfo = None | |
488 | return url, authinfo |
|
488 | return url, authinfo | |
489 |
|
489 | |||
|
490 | handlerfuncs = [] | |||
|
491 | ||||
490 | def opener(ui, authinfo=None): |
|
492 | def opener(ui, authinfo=None): | |
491 | ''' |
|
493 | ''' | |
492 | construct an opener suitable for urllib2 |
|
494 | construct an opener suitable for urllib2 | |
@@ -507,6 +509,7 b' def opener(ui, authinfo=None):' | |||||
507 |
|
509 | |||
508 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), |
|
510 | handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), | |
509 | httpdigestauthhandler(passmgr))) |
|
511 | httpdigestauthhandler(passmgr))) | |
|
512 | handlers.extend([h(ui, passmgr) for h in handlerfuncs]) | |||
510 | opener = urllib2.build_opener(*handlers) |
|
513 | opener = urllib2.build_opener(*handlers) | |
511 |
|
514 | |||
512 | # 1.0 here is the _protocol_ version |
|
515 | # 1.0 here is the _protocol_ version |
General Comments 0
You need to be logged in to leave comments.
Login now