[pytango] 102/122: Better gevent version checking
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit 042a8e6be88775b5079dcd7eb7941698df32e738
Author: AntoineDupre <antoine.dupre at maxiv.lu.se>
Date: Fri Jan 13 10:09:52 2017 +0100
Better gevent version checking
---
tango/tango_gevent.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tango/tango_gevent.py b/tango/tango_gevent.py
index 9958e8c..3876a39 100644
--- a/tango/tango_gevent.py
+++ b/tango/tango_gevent.py
@@ -24,7 +24,7 @@ def get_global_threadpool():
thread_pool = gevent.get_hub().threadpool
# before gevent-1.1.0, patch the spawn method to propagate exception raised
# in the loop to the AsyncResult.
- if gevent.version_info[0] <= 1 and gevent.version_info[1] < 1:
+ if gevent.version_info < (1, 1):
thread_pool.submit = patched_spawn
else:
thread_pool.submit = thread_pool.spawn
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list