Commit 55fab9f6 authored by Denis Bilenko's avatar Denis Bilenko

import socket on windows

Should fix #459. See https://github.com/gevent/gevent/issues/459#issuecomment-49506870

Thanks to @snaury.

This reverts commit 12e4fb18.
parent 6f62c414
......@@ -32,6 +32,13 @@ __all__ = ['get_hub',
'reinit']
import sys
if sys.platform == 'win32':
import socket # trigger WSAStartup call
del socket
del sys
from gevent.hub import get_hub, iwait, wait, PYPY
from gevent.greenlet import Greenlet, joinall, killall
spawn = Greenlet.spawn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment