summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-01-24 22:44:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-01-24 22:44:08 (GMT)
commit92037a15a975092d81b6af5933aba985e731cdb7 (patch)
tree46183f894e4180b0843b7b95734c9f1001d01ee2
parente101df9748c2ad10797ee4e3fd46ab8a939635db (diff)
downloadcpython-92037a15a975092d81b6af5933aba985e731cdb7.zip
cpython-92037a15a975092d81b6af5933aba985e731cdb7.tar.gz
cpython-92037a15a975092d81b6af5933aba985e731cdb7.tar.bz2
Whitespace normalization.
-rw-r--r--Lib/urllib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 88df405..e1fa743 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -299,7 +299,7 @@ class URLopener:
#print "proxy via http:", host, selector
if not host: raise IOError, ('http error', 'no host given')
-
+
if proxy_passwd:
import base64
proxy_auth = base64.encodestring(proxy_passwd).strip()
@@ -672,7 +672,7 @@ class FancyURLopener(URLopener):
return getattr(self,name)(url, realm)
else:
return getattr(self,name)(url, realm, data)
-
+
def http_error_407(self, url, fp, errcode, errmsg, headers, data=None):
"""Error 407 -- proxy authentication required.
This function supports Basic authentication only."""
@@ -694,7 +694,7 @@ class FancyURLopener(URLopener):
return getattr(self,name)(url, realm)
else:
return getattr(self,name)(url, realm, data)
-
+
def retry_proxy_http_basic_auth(self, url, realm, data=None):
host, selector = splithost(url)
newurl = 'http://' + host + selector
@@ -728,7 +728,7 @@ class FancyURLopener(URLopener):
return self.open(newurl)
else:
return self.open(newurl, data)
-
+
def retry_http_basic_auth(self, url, realm, data=None):
host, selector = splithost(url)
i = host.find('@') + 1