From a94568a7535de60f1144e4eea0d027b87017a4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 10 May 2003 07:36:56 +0000 Subject: Patch #734231: Update RiscOS support. In particular, correct riscospath.extsep, and use os.extsep throughout. --- Lib/socket.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Lib/socket.py') diff --git a/Lib/socket.py b/Lib/socket.py index 2ee0796918..9598f99fc5 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -96,7 +96,6 @@ if sys.platform.lower().startswith("win"): errorTab[10065] = "The host is unreachable." __all__.append("errorTab") -del os, sys def getfqdn(name=''): @@ -139,6 +138,9 @@ _socketmethods = ( 'sendall', 'setblocking', 'settimeout', 'gettimeout', 'shutdown') +if sys.platform == "riscos": + _socketmethods = _socketmethods + ('sleeptaskw',) + class _closedsocket(object): __slots__ = [] def _dummy(*args): -- cgit v1.2.1