diff options
Diffstat (limited to 'Lib/socket.py')
-rw-r--r-- | Lib/socket.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |