[issue20911] urllib 'headers' is not a well defined data type

2019-01-24 Thread Demian Brecht
Demian Brecht added the comment: >>> urlopen('https://example.com').info() >>> urlopen('http://example.com').info() >>> urlopen('ftp://speedtest.tele2.net').info() >>> urlopen('file:///path/to/setup.py').info() I've taken a look at the rest of the handlers in urllib.request and they all

[issue20911] urllib 'headers' is not a well defined data type

2019-01-23 Thread R. David Murray
R. David Murray added the comment: There has been considerable rewriting of the header handling code since I filed this. I would not be surprised if the issue is no longer valid. If you want to double check, look for the places that the headers attribute is created in the various

[issue20911] urllib 'headers' is not a well defined data type

2019-01-23 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20911] urllib 'headers' is not a well defined data type

2019-01-22 Thread Demian Brecht
Demian Brecht added the comment: @R. David Murray Is this issue still valid? Running 3.6 it seems that http and ftp are consistent at any rate (http returns http.client.HTTPMessage and ftp returns email.message.Message). If it's still an issue, could you please elaborate? --

[issue20911] urllib 'headers' is not a well defined data type

2015-03-06 Thread Mark Lawrence
Mark Lawrence added the comment: @Demian I believe this maybe of interest to you. -- nosy: +BreamoreBoy, demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20911 ___

[issue20911] urllib 'headers' is not a well defined data type

2014-03-13 Thread R. David Murray
New submission from R. David Murray: Some places in the code it is an email.message.Message object. Some places it is a simple dictionary. In one place (FTP), it is a string with embedded newlines. I'm not sure what should be done about this situation, but it looks like a bug magnet, and