Message173530
localhost() returns a string and thishost() returns tuple. In urllib/request.py, for file:// protocol, there is a verification to check to if the host is in the localhost and check happens:
socket.gethostbyname(host) in (localhost() + thishost())):
This is clearly wrong for the above mentioned reason. It should be changed to this, wrapping localhost with tuple() or making localhost return a tuple, which will be consistent with thishost
socket.gethostbyname(host) in (tuple(localhost()) + thishost())): |
|
Date |
User |
Action |
Args |
2012-10-22 15:29:05 | orsenthil | set | recipients:
+ orsenthil |
2012-10-22 15:29:05 | orsenthil | set | messageid: <1350919745.8.0.0839924289599.issue16301@psf.upfronthosting.co.za> |
2012-10-22 15:29:05 | orsenthil | link | issue16301 messages |
2012-10-22 15:29:05 | orsenthil | create | |
|