[pytango] 12/26: Use the submit map for submitting (instead of the executor map)

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:16:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag v8.1.8
in repository pytango.

commit a8ec1446ae8fa4da54a4194112c602cf3ffd156a
Author: Valentin Valls <valentin.valls at esrf.fr>
Date:   Mon Sep 28 14:06:23 2015 +0200

    Use the submit map for submitting (instead of the executor map)
---
 src/boost/python/green.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/boost/python/green.py b/src/boost/python/green.py
index 02f1e9e..c36c2ff 100644
--- a/src/boost/python/green.py
+++ b/src/boost/python/green.py
@@ -96,10 +96,7 @@ def get_executor(mode):
     return __executor_map[mode]()
 
 def get_submitter(mode):
-    executor = get_executor(mode)
-    if mode == GreenMode.Gevent:
-        return executor.spawn
-    return executor.submit
+    return __submit_map[mode]
 
 def submit(mode, fn, *args, **kwargs):
     return get_submitter(mode)(fn, *args, **kwargs)

-- 
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