summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-02-18 18:24:30 (GMT)
committerGuido van Rossum <guido@python.org>2014-02-18 18:24:30 (GMT)
commit59a5533028ead37c4c9950551fb80a7c52d72a26 (patch)
tree68fd5e414edce4c9e5985d0322b9ef8145cab89a /Lib/asyncio
parent34ce99f66db84cabaaee04878e30aa8850518ce5 (diff)
downloadcpython-59a5533028ead37c4c9950551fb80a7c52d72a26.zip
cpython-59a5533028ead37c4c9950551fb80a7c52d72a26.tar.gz
cpython-59a5533028ead37c4c9950551fb80a7c52d72a26.tar.bz2
asyncio: Make tests pass on Windows.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/streams.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 698c5c6..27d595f 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -2,12 +2,14 @@
__all__ = ['StreamReader', 'StreamWriter', 'StreamReaderProtocol',
'open_connection', 'start_server',
- 'open_unix_connection', 'start_unix_server',
'IncompleteReadError',
]
import socket
+if hasattr(socket, 'AF_UNIX'):
+ __all__.extend(['open_unix_connection', 'start_unix_server'])
+
from . import events
from . import futures
from . import protocols