Some slight 2.6 compatibility changes

This commit is contained in:
Ryan Williams
2009-08-13 17:59:33 -07:00
parent b00820205e
commit a8cad6f23c
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,11 @@ for var in __socket.__all__:
exec "%s = __socket.%s" % (var, var)
_fileobject = __socket._fileobject
try:
sslerror = socket.sslerror
except AttributeError:
pass
from eventlet.api import get_hub
from eventlet.util import wrap_ssl_obj
from eventlet.greenio import GreenSocket as socket

View File

@@ -340,6 +340,8 @@ class _Event(_Verbose):
def isSet(self):
return self.__flag
is_set = isSet
def set(self):
self.__cond.acquire()
try: