Merge pull request #42291 from vutny/fix-38839

Fix #38839: remove `state` from Reactor runner kwags
This commit is contained in:
Mike Place 2017-08-15 17:01:08 -06:00 committed by GitHub
commit 923f9741fe

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: