From d61800dfe3c93fea1e35a85da2b8c5383bf43389 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 4 Jun 2020 15:33:37 -0400 Subject: [PATCH] Port callers to new _result.py module --- src/pluggy/callers/__init__.py | 2 +- src/pluggy/callers/cythonized.pyx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pluggy/callers/__init__.py b/src/pluggy/callers/__init__.py index d35db412..2a3e030a 100644 --- a/src/pluggy/callers/__init__.py +++ b/src/pluggy/callers/__init__.py @@ -3,7 +3,7 @@ """ import sys -from ._result import HookCallError, _Result, _raise_wrapfail +from .._result import HookCallError, _Result, _raise_wrapfail from .cythonized import _c_multicall __all__ = ['_multicall', '_c_multicall'] diff --git a/src/pluggy/callers/cythonized.pyx b/src/pluggy/callers/cythonized.pyx index 0abc79cf..952af636 100644 --- a/src/pluggy/callers/cythonized.pyx +++ b/src/pluggy/callers/cythonized.pyx @@ -1,10 +1,14 @@ """ Cynthonized hook call loop. +This is currently maintained as a verbatim copy of +``pluggy.callers._multicall()``. + NOTE: In order to build this source you must have cython installed. """ import sys -from . import _Result, _raise_wrapfail, HookCallError + +from .._result import _Result, _raise_wrapfail, HookCallError cpdef _c_multicall(list hook_impls, dict caller_kwargs, bint firstresult=False):