The following patch helps make things a tad easier for extensions that want to provide custom urllib handlers, e.g. for doing different forms of authentication - in my case, kerberos authentication. -- Kind regards, Henrik Stuart