From 5e6e56f0c51310673c3f0f032fa678beff078b5a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 29 Apr 2018 19:14:56 +0100 Subject: [PATCH] issue #212: service: make call_async kwargs optional. --- mitogen/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/service.py b/mitogen/service.py index 69774299..53c5ff46 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -369,10 +369,10 @@ class Pool(object): ) -def call_async(context, handle, method, kwargs): +def call_async(context, handle, method, kwargs=None): LOG.debug('service.call_async(%r, %r, %r, %r)', context, handle, method, kwargs) - pair = (method, kwargs) + pair = (method, kwargs or {}) msg = mitogen.core.Message.pickled(pair, handle=handle) return context.send_async(msg)