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.

classification
Title: urllib2 bails if the localhost doens't have a fqdn hostname
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, jjlee, splitscreen
Priority: normal Keywords:

Created on 2006-04-01 15:40 by splitscreen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
t-urllib.diff splitscreen, 2006-04-01 15:40 patch
Messages (3)
msg28016 - (view) Author: Matt Fleming (splitscreen) Date: 2006-04-01 15:40
When running the test suite I ran into a similar
problem to bug #1257988.

in the FileHandler class's get_names() method should be
wrapped in a try, except block because it shouldn't
assume that the localhost has a fqdn hostname.

Attached is a minimal diff against trunk r43542.

Matt
msg28017 - (view) Author: John J Lee (jjlee) Date: 2006-04-01 22:35
Logged In: YES 
user_id=261020

This fixes the test failure and is safe.  I don't know if a
more sophisticated patch is possible, but if nobody comes up
with one, I think this should be applied (as happened with
#1257988).
msg28018 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-02 20:37
Logged In: YES 
user_id=849994

Fixed in rev. 43552.
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43142
2006-04-01 15:40:18splitscreencreate