summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-18 18:00:16 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-18 18:00:16 (GMT)
commit0f694d72a284ac656772806f09ea9bf454550a98 (patch)
treea03227ee8e823b064544415b7a27cb5af35d56e4 /Lib/urllib/request.py
parentfb0901c96898148bcd47aad2aa3ae59281af3b5a (diff)
parentdec36b6b74237ddbcbc5ed915591281f3827c271 (diff)
downloadcpython-0f694d72a284ac656772806f09ea9bf454550a98.zip
cpython-0f694d72a284ac656772806f09ea9bf454550a98.tar.gz
cpython-0f694d72a284ac656772806f09ea9bf454550a98.tar.bz2
Merge
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 3a472f2..8bf15d8 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1762,7 +1762,6 @@ class URLopener:
def http_error_default(self, url, fp, errcode, errmsg, headers):
"""Default error handler: close the connection and raise IOError."""
- void = fp.read()
fp.close()
raise HTTPError(url, errcode, errmsg, headers, None)
@@ -1951,7 +1950,6 @@ class FancyURLopener(URLopener):
newurl = headers['uri']
else:
return
- void = fp.read()
fp.close()
# In case the server sent a relative URL, join with original: