[ python-Patches-1755214 ] struni: correction for sockets on win32
"SourceForge.net" <[email protected]> Tue, 17 Jul 2007 13:41:30 -0700
| Newsgroups | gmane.comp.python.patches |
|---|---|
| Message-ID | <[email protected]> |
Patches item #1755214, was opened at 2007-07-16 21:14 Message generated for change (Comment added) made by gvanrossum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1755214&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: Windows Group: Python 3000 >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Amaury Forgeot d'Arc (amauryf) Assigned to: Guido van Rossum (gvanrossum) Summary: struni: correction for sockets on win32 Initial Comment: On Windows, os.dup() works on files, but not on socket handles. Thus I changed the condition from _os_has_dup = hasattr(os, "dup") to _can_dup_socket = hasattr(_socket, "dup") This corrects many tests involving a socket server (test_ftplib at least). ---------------------------------------------------------------------- >Comment By: Guido van Rossum (gvanrossum) Date: 2007-07-17 16:41 Message: Logged In: YES user_id=6380 Originator: NO Committed revision 56415. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1755214&group_id=5470