[ python-Patches-1755214 ] struni: correction for sockets on win32
"SourceForge.net" <[email protected]> Mon, 16 Jul 2007 18:15:20 -0700
| Newsgroups | gmane.comp.python.patches |
|---|---|
| Message-ID | <[email protected]> |
Patches item #1755214, was opened at 2007-07-17 03:14 Message generated for change (Settings changed) made by amauryf 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: Open Resolution: None 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). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1755214&group_id=5470