[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-08 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-08 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: pending -> open ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This appears to be a duplicate of #1507166, with essentially the same title. I found it by searching all issues for "response.code HTTPResponse". That was closed because "The problem came from an external module (urlgrabber) which aparently

[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-02 Thread Jon Perez
New submission from Jon Perez <[EMAIL PROTECTED]>: In http_response() in HTTPErrorProcessor in urllib2.py, the following line code, msg, hdrs = response.code, response.msg, response.info() results in an error because response.code is not a valid attribute, changing it to response.status works,