add ssloop branch

This commit is contained in:
clowwindy 2014-05-30 16:28:44 +08:00
parent 5ad8cd6f3d
commit 4f46400145
4 changed files with 177 additions and 20 deletions

View file

@ -29,16 +29,6 @@ else:
import json
# TODO remove gevent
try:
import gevent
import gevent.monkey
gevent.monkey.patch_all(dns=gevent.version_info[0] >= 1)
except ImportError:
gevent = None
print >>sys.stderr, 'warning: gevent not found, using threading instead'
import socket
import select
import threading