Skip to content

Commit

Permalink
Drop _HookCaller.multicall indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 3, 2020
1 parent 72948af commit bcbcdc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/pluggy/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import inspect
import sys
import warnings
from .callers import _multicall


class HookspecMarker(object):
Expand Down Expand Up @@ -212,7 +211,6 @@ def __init__(self, name, hook_execute, specmodule_or_class=None, spec_opts=None)
self._hookexec = hook_execute
self.argnames = None
self.kwargnames = None
self.multicall = _multicall
self.spec = None
if specmodule_or_class is not None:
assert spec_opts is not None
Expand Down
4 changes: 2 additions & 2 deletions src/pluggy/manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inspect
import sys
from . import _tracing
from .callers import _Result
from .callers import _Result, _multicall
from .hooks import HookImpl, _HookRelay, _HookCaller, normalize_hookimpl_opts
import warnings

Expand Down Expand Up @@ -81,7 +81,7 @@ def __init__(self, project_name, implprefix=None):
stacklevel=2,
)
self._implprefix = implprefix
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
self._inner_hookexec = lambda hook, methods, kwargs: _multicall(
methods,
kwargs,
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
Expand Down

0 comments on commit bcbcdc0

Please sign in to comment.