Removed libevent version-checking code because it crashes on my box and it's not useful enough to fix.

This commit is contained in:
Ryan Williams
2009-08-04 19:23:04 -07:00
parent b46075bb80
commit c8ab05d40a

View File

@@ -195,15 +195,6 @@ class Hub(object):
def _version_info(self): def _version_info(self):
baseversion = event.__version__ baseversion = event.__version__
try:
from ctypes import CDLL, util, c_char_p
c = CDLL(util.find_library('event'))
c.event_get_version.restype = c_char_p
baseversion += '/libevent=%s' % (c.event_get_version(), )
c.event_get_method.restype = c_char_p
baseversion += '/method=%s' % (c.event_get_method(), )
except Exception, ex:
print ex or type(ex).__name__
return baseversion return baseversion