Fix #38839: remove state from Reactor runner kwags

This commit is contained in:
Denys Havrysh 2017-07-12 18:01:55 +03:00
parent e2aa5114e4
commit 5f8f98a01f

View file

@ -278,6 +278,9 @@ class ReactWrap(object):
# Update called function's low data with event user to
# segregate events fired by reactor and avoid reaction loops
kwargs['__user__'] = self.event_user
# Replace ``state`` kwarg which comes from high data compiler.
# It breaks some runner functions and seems unnecessary.
kwargs['__state__'] = kwargs.pop('state')
l_fun(*f_call.get('args', ()), **kwargs)
except Exception: