diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-04-10 03:06:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-04-10 03:06:53 (GMT) |
commit | 5680d0c5e3a9d42b6c21f4a31a7dbfe72c9e5170 (patch) | |
tree | 136c5f661370582c3c9aaa8baac59228dfd9de28 /Lib/urllib2.py | |
parent | 3de92bf155a1fff6e48b32c5d5f0071f6669ebf0 (diff) | |
download | cpython-5680d0c5e3a9d42b6c21f4a31a7dbfe72c9e5170.zip cpython-5680d0c5e3a9d42b6c21f4a31a7dbfe72c9e5170.tar.gz cpython-5680d0c5e3a9d42b6c21f4a31a7dbfe72c9e5170.tar.bz2 |
Merged revisions 62246-62259 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62246 | georg.brandl | 2008-04-09 19:57:38 +0200 (Mi, 09 Apr 2008) | 2 lines
#2585: initialize code attribute of HTTPError.
........
r62247 | georg.brandl | 2008-04-09 19:58:56 +0200 (Mi, 09 Apr 2008) | 2 lines
Add :issue: directive for easy linking to bugs.python.org.
........
r62249 | gregory.p.smith | 2008-04-09 20:18:43 +0200 (Mi, 09 Apr 2008) | 2 lines
Add a note about the zlib.decompressobj().flush() fix.
........
r62255 | martin.v.loewis | 2008-04-09 20:56:20 +0200 (Mi, 09 Apr 2008) | 2 lines
Package wininst*.exe from distutils/command.
........
r62259 | andrew.kuchling | 2008-04-10 00:28:43 +0200 (Do, 10 Apr 2008) | 1 line
Try out the new issue role. Thanks, Georg!
........
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 2 |
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) |