[issue4249] HTTPResponse instance has no attribute 'code'

2008-11-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: You should have edited the title and added a note here instead of opening a new issue to clarify that the problem is in urllib2.py. Anyway, closing this in favor of issue 4250 -- nosy: +tjreedy resolution: -> duplicate status: open

[issue4249] HTTPResponse instance has no attribute 'code'

2008-11-02 Thread Jon Perez
New submission from Jon Perez <[EMAIL PROTECTED]>: In http_response in HTTPErrorProcessor, 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, but is this the