summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index b95d672..1458826 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -157,7 +157,7 @@ class HTTPError(URLError, addinfourl):
# file object. If this happens, the simplest workaround is to
# not initialize the base classes.
if fp is not None:
- self.__super_init(fp, hdrs, url)
+ self.__super_init(fp, hdrs, url, code)
def __str__(self):
return 'HTTP Error %s: %s' % (self.code, self.msg)