[pytango] 112/122: Fix trollius compatibility
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:24 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 e686199f60a671f619f4b0e0db276e5405c47a09
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date: Tue Jan 17 16:41:06 2017 +0100
Fix trollius compatibility
---
tango/server.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tango/server.py b/tango/server.py
index 98f8c0b..c683cf4 100644
--- a/tango/server.py
+++ b/tango/server.py
@@ -1668,10 +1668,10 @@ def _create_asyncio_worker():
def execute(self, fn, *args, **kwargs):
"""Execute the callable fn as fn(*args **kwargs)."""
- corofn = asyncio.coroutine(fn)
+ corofn = asyncio.coroutine(lambda: fn(*args, **kwargs))
if self.loop._thread_id == get_ident():
- return corofn(*args, **kwargs)
- return self.submit(corofn, *args, **kwargs).result()
+ return corofn()
+ return self.submit(corofn).result()
try:
loop = asyncio.get_event_loop()
--
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