Skip to content

Commit

Permalink
Build a correct pyev 0.9.0 version tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
dowski committed Nov 21, 2013
1 parent e28337e commit 727bf37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions diesel/hub.py
Expand Up @@ -304,7 +304,7 @@ def __init__(self):

@property
def describe(self):
return "libev/pyev (%s/%s) backend=%s" % (
return "pyev/libev (%s/%s) backend=%s" % (
self._pyev_version() + ({
1 : "select()",
2 : "poll()",
Expand All @@ -318,7 +318,9 @@ def _pyev_version(self):
if hasattr(pyev, 'version'):
return pyev.version()
else:
return pyev.abi_version()
pyev_ver = pyev.__version__
libev_ver = ".".join(str(p) for p in pyev.abi_version())
return (pyev_ver, libev_ver)

def handle_events(self):
'''Run one pass of event handling.
Expand Down

0 comments on commit 727bf37

Please sign in to comment.