[ python-Bugs-1462706 ] urllib2 bails if the localhost doens't have a fqdn hostname

SourceForge.net noreply at sourceforge.net
Sun Apr 2 00:35:44 CEST 2006


Bugs item #1462706, was opened at 2006-04-01 16:40
Message generated for change (Comment added) made by jjlee
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1462706&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: splitscreen (splitscreen)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2 bails if the localhost doens't have a fqdn hostname

Initial Comment:
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

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2006-04-01 23:35

Message:
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).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1462706&group_id=5470


More information about the Python-bugs-list mailing list