[ python-Bugs-1462706 ] urllib2 bails if the localhost doens't have a fqdn hostname
SourceForge.net
noreply at sourceforge.net
Sun Apr 2 22:37:32 CEST 2006
Bugs item #1462706, was opened at 2006-04-01 15:40
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Matt Fleming (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: Georg Brandl (gbrandl)
Date: 2006-04-02 20:37
Message:
Logged In: YES
user_id=849994
Fixed in rev. 43552.
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2006-04-01 22: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