Kaydet (Commit) 92037a15 authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst e101df97
...@@ -299,7 +299,7 @@ class URLopener: ...@@ -299,7 +299,7 @@ class URLopener:
#print "proxy via http:", host, selector #print "proxy via http:", host, selector
if not host: raise IOError, ('http error', 'no host given') if not host: raise IOError, ('http error', 'no host given')
if proxy_passwd: if proxy_passwd:
import base64 import base64
proxy_auth = base64.encodestring(proxy_passwd).strip() proxy_auth = base64.encodestring(proxy_passwd).strip()
...@@ -672,7 +672,7 @@ class FancyURLopener(URLopener): ...@@ -672,7 +672,7 @@ class FancyURLopener(URLopener):
return getattr(self,name)(url, realm) return getattr(self,name)(url, realm)
else: else:
return getattr(self,name)(url, realm, data) return getattr(self,name)(url, realm, data)
def http_error_407(self, url, fp, errcode, errmsg, headers, data=None): def http_error_407(self, url, fp, errcode, errmsg, headers, data=None):
"""Error 407 -- proxy authentication required. """Error 407 -- proxy authentication required.
This function supports Basic authentication only.""" This function supports Basic authentication only."""
...@@ -694,7 +694,7 @@ class FancyURLopener(URLopener): ...@@ -694,7 +694,7 @@ class FancyURLopener(URLopener):
return getattr(self,name)(url, realm) return getattr(self,name)(url, realm)
else: else:
return getattr(self,name)(url, realm, data) return getattr(self,name)(url, realm, data)
def retry_proxy_http_basic_auth(self, url, realm, data=None): def retry_proxy_http_basic_auth(self, url, realm, data=None):
host, selector = splithost(url) host, selector = splithost(url)
newurl = 'http://' + host + selector newurl = 'http://' + host + selector
...@@ -728,7 +728,7 @@ class FancyURLopener(URLopener): ...@@ -728,7 +728,7 @@ class FancyURLopener(URLopener):
return self.open(newurl) return self.open(newurl)
else: else:
return self.open(newurl, data) return self.open(newurl, data)
def retry_http_basic_auth(self, url, realm, data=None): def retry_http_basic_auth(self, url, realm, data=None):
host, selector = splithost(url) host, selector = splithost(url)
i = host.find('@') + 1 i = host.find('@') + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment