mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
socket.ioctl is only available on Windows
This commit is contained in:
parent
aee643b01f
commit
a47b75b0a0
2 changed files with 14 additions and 1 deletions
|
@ -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',)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue