socket.ioctl is only available on Windows

This commit is contained in:
Christian Heimes 2008-01-04 15:48:06 +00:00
parent aee643b01f
commit a47b75b0a0
2 changed files with 14 additions and 1 deletions

View file

@ -141,7 +141,10 @@ _socketmethods = (
'bind', 'connect', 'connect_ex', 'fileno', 'listen',
'getpeername', 'getsockname', 'getsockopt', 'setsockopt',
'sendall', 'setblocking',
'settimeout', 'gettimeout', 'shutdown', 'ioctl')
'settimeout', 'gettimeout', 'shutdown')
if os.name == "nt":
_socketmethods = _socketmethods + ('ioctl',)
if sys.platform == "riscos":
_socketmethods = _socketmethods + ('sleeptaskw',)