This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author djc
Recipients djc, georg.brandl
Date 2008-04-08.15:19:23
SpamBayes Score 0.13955288
Marked as misclassified No
Message-id <1207667965.33.0.297258961494.issue2585@psf.upfronthosting.co.za>
In-reply-to
Content
djc@enrai tests $ python2.6
Python 2.6a2+ (trunk, Apr  4 2008, 20:21:45)
[GCC 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2
p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> try:
...     urllib2.urlopen('http://example.com/weird')
... except urllib2.HTTPError, inst:
...     print inst.code
...
None
>>>

urllib.addinfourl.__init__() was changed in r60133 to set self.code.
Unfortunately, this overrides HTTPError.code, which is probably not good.
History
Date User Action Args
2008-04-08 15:19:25djcsetspambayes_score: 0.139553 -> 0.13955288
recipients: + djc, birkenfeld
2008-04-08 15:19:25djcsetspambayes_score: 0.139553 -> 0.139553
messageid: <1207667965.33.0.297258961494.issue2585@psf.upfronthosting.co.za>
2008-04-08 15:19:24djclinkissue2585 messages
2008-04-08 15:19:23djccreate