diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-01-18 20:29:55 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-01-18 20:29:55 (GMT) |
commit | 58eb11cf62dd04ccc2c364b62fd51b4265e2e203 (patch) | |
tree | 6b4639f640391b3d40332ee045dba325c63a920d /Lib/urllib2.py | |
parent | 5303a968080bdb2690eaab89495ae51939fa6397 (diff) | |
download | cpython-58eb11cf62dd04ccc2c364b62fd51b4265e2e203.zip cpython-58eb11cf62dd04ccc2c364b62fd51b4265e2e203.tar.gz cpython-58eb11cf62dd04ccc2c364b62fd51b4265e2e203.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 923b4e4..43e9c7d 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -426,11 +426,11 @@ class BaseHandler: def add_parent(self, parent): self.parent = parent - + def close(self): # Only exists for backwards compatibility pass - + def __lt__(self, other): if not hasattr(other, "handler_order"): # Try to preserve the old behavior of having custom classes @@ -770,7 +770,7 @@ class AbstractDigestAuthHandler: # prompting for the information. Crap. This isn't great # but it's better than the current 'repeat until recursion # depth exceeded' approach <wink> - raise HTTPError(req.get_full_url(), 401, "digest auth failed", + raise HTTPError(req.get_full_url(), 401, "digest auth failed", headers, None) else: self.retried += 1 @@ -845,7 +845,7 @@ class AbstractDigestAuthHandler: else: # XXX handle auth-int. pass - + # XXX should the partial digests be encoded too? base = 'username="%s", realm="%s", nonce="%s", uri="%s", ' \ @@ -887,7 +887,7 @@ class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler): def http_error_401(self, req, fp, code, msg, headers): host = urlparse.urlparse(req.get_full_url())[1] - retry = self.http_error_auth_reqed('www-authenticate', + retry = self.http_error_auth_reqed('www-authenticate', host, req, headers) self.reset_retry_count() return retry @@ -899,7 +899,7 @@ class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler): def http_error_407(self, req, fp, code, msg, headers): host = req.get_host() - retry = self.http_error_auth_reqed('proxy-authenticate', + retry = self.http_error_auth_reqed('proxy-authenticate', host, req, headers) self.reset_retry_count() return retry @@ -964,7 +964,7 @@ class AbstractHTTPHandler(BaseHandler): raise URLError(err) # Pick apart the HTTPResponse object to get the various pieces - # of the + # of the resp = addinfourl(r.fp, r.msg, req.get_full_url()) resp.code = r.status resp.msg = r.reason |