From b3a1310b0593d2c6b6ef430883843896e17d6a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Fri, 25 Jan 2019 18:03:48 +0200 Subject: [PATCH] Regenerate C files. --- src/hunter/_event.c | 1182 +++++++++++++++++++++--------------------- src/hunter/_tracer.c | 400 +++++++------- 2 files changed, 794 insertions(+), 788 deletions(-) diff --git a/src/hunter/_event.c b/src/hunter/_event.c index 6263dd2..158fcde 100644 --- a/src/hunter/_event.c +++ b/src/hunter/_event.c @@ -880,7 +880,7 @@ struct __pyx_obj_6hunter_6_event_Event { }; -/* "hunter/_event.pyx":248 +/* "hunter/_event.pyx":206 * * * def yield_lines(filename, start, list collector, # <<<<<<<<<<<<<< @@ -908,7 +908,7 @@ struct __pyx_obj_6hunter_6_event___pyx_scope_struct__yield_lines { * * cdef class Event: # <<<<<<<<<<<<<< * """ - * Event wrapper for ``frame, kind, arg`` (the arguments the settrace function gets). This objects is passed to your + * A wrapper object for Frame objects. Instances of this are passed to your custom functions or predicates. */ struct __pyx_vtabstruct_6hunter_6_event_Event { @@ -1901,8 +1901,8 @@ static PyObject *__pyx_tuple__12; static PyObject *__pyx_codeobj__10; /* Late includes */ -/* "hunter/_event.pyx":45 - * **Users do not instantiate this directly.** +/* "hunter/_event.pyx":46 + * tracer (:obj:`hunter.Tracer`): * """ * def __cinit__(self, FrameType frame, str kind, object arg, Tracer tracer): # <<<<<<<<<<<<<< * self.arg = arg @@ -1946,23 +1946,23 @@ static int __pyx_pw_6hunter_6_event_5Event_1__cinit__(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kind)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 1); __PYX_ERR(0, 45, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 1); __PYX_ERR(0, 46, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_arg)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 2); __PYX_ERR(0, 45, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 2); __PYX_ERR(0, 46, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tracer)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 3); __PYX_ERR(0, 45, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, 3); __PYX_ERR(0, 46, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 45, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 46, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; @@ -1979,15 +1979,15 @@ static int __pyx_pw_6hunter_6_event_5Event_1__cinit__(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 45, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 46, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("hunter._event.Event.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frame), __pyx_ptype_6hunter_7_tracer_FrameType, 1, "frame", 0))) __PYX_ERR(0, 45, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kind), (&PyUnicode_Type), 1, "kind", 1))) __PYX_ERR(0, 45, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tracer), __pyx_ptype_6hunter_7_tracer_Tracer, 1, "tracer", 0))) __PYX_ERR(0, 45, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frame), __pyx_ptype_6hunter_7_tracer_FrameType, 1, "frame", 0))) __PYX_ERR(0, 46, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kind), (&PyUnicode_Type), 1, "kind", 1))) __PYX_ERR(0, 46, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tracer), __pyx_ptype_6hunter_7_tracer_Tracer, 1, "tracer", 0))) __PYX_ERR(0, 46, __pyx_L1_error) __pyx_r = __pyx_pf_6hunter_6_event_5Event___cinit__(((struct __pyx_obj_6hunter_6_event_Event *)__pyx_v_self), __pyx_v_frame, __pyx_v_kind, __pyx_v_arg, __pyx_v_tracer); /* function exit code */ @@ -2005,214 +2005,214 @@ static int __pyx_pf_6hunter_6_event_5Event___cinit__(struct __pyx_obj_6hunter_6_ __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__cinit__", 0); - __Pyx_TraceCall("__cinit__", __pyx_f[0], 45, 0, __PYX_ERR(0, 45, __pyx_L1_error)); + __Pyx_TraceCall("__cinit__", __pyx_f[0], 46, 0, __PYX_ERR(0, 46, __pyx_L1_error)); - /* "hunter/_event.pyx":46 + /* "hunter/_event.pyx":47 * """ * def __cinit__(self, FrameType frame, str kind, object arg, Tracer tracer): * self.arg = arg # <<<<<<<<<<<<<< * self.frame = frame * self.kind = kind */ - __Pyx_TraceLine(46,0,__PYX_ERR(0, 46, __pyx_L1_error)) + __Pyx_TraceLine(47,0,__PYX_ERR(0, 47, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_arg); __Pyx_GIVEREF(__pyx_v_arg); __Pyx_GOTREF(__pyx_v_self->arg); __Pyx_DECREF(__pyx_v_self->arg); __pyx_v_self->arg = __pyx_v_arg; - /* "hunter/_event.pyx":47 + /* "hunter/_event.pyx":48 * def __cinit__(self, FrameType frame, str kind, object arg, Tracer tracer): * self.arg = arg * self.frame = frame # <<<<<<<<<<<<<< * self.kind = kind * self.depth = tracer.depth */ - __Pyx_TraceLine(47,0,__PYX_ERR(0, 47, __pyx_L1_error)) + __Pyx_TraceLine(48,0,__PYX_ERR(0, 48, __pyx_L1_error)) __Pyx_INCREF(((PyObject *)__pyx_v_frame)); __Pyx_GIVEREF(((PyObject *)__pyx_v_frame)); __Pyx_GOTREF(__pyx_v_self->frame); __Pyx_DECREF(((PyObject *)__pyx_v_self->frame)); __pyx_v_self->frame = __pyx_v_frame; - /* "hunter/_event.pyx":48 + /* "hunter/_event.pyx":49 * self.arg = arg * self.frame = frame * self.kind = kind # <<<<<<<<<<<<<< * self.depth = tracer.depth * self.calls = tracer.calls */ - __Pyx_TraceLine(48,0,__PYX_ERR(0, 48, __pyx_L1_error)) + __Pyx_TraceLine(49,0,__PYX_ERR(0, 49, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_kind); __Pyx_GIVEREF(__pyx_v_kind); __Pyx_GOTREF(__pyx_v_self->kind); __Pyx_DECREF(__pyx_v_self->kind); __pyx_v_self->kind = __pyx_v_kind; - /* "hunter/_event.pyx":49 + /* "hunter/_event.pyx":50 * self.frame = frame * self.kind = kind * self.depth = tracer.depth # <<<<<<<<<<<<<< * self.calls = tracer.calls * self.tracer = tracer */ - __Pyx_TraceLine(49,0,__PYX_ERR(0, 49, __pyx_L1_error)) + __Pyx_TraceLine(50,0,__PYX_ERR(0, 50, __pyx_L1_error)) __pyx_t_1 = __pyx_v_tracer->depth; __pyx_v_self->depth = __pyx_t_1; - /* "hunter/_event.pyx":50 + /* "hunter/_event.pyx":51 * self.kind = kind * self.depth = tracer.depth * self.calls = tracer.calls # <<<<<<<<<<<<<< * self.tracer = tracer * */ - __Pyx_TraceLine(50,0,__PYX_ERR(0, 50, __pyx_L1_error)) + __Pyx_TraceLine(51,0,__PYX_ERR(0, 51, __pyx_L1_error)) __pyx_t_1 = __pyx_v_tracer->calls; __pyx_v_self->calls = __pyx_t_1; - /* "hunter/_event.pyx":51 + /* "hunter/_event.pyx":52 * self.depth = tracer.depth * self.calls = tracer.calls * self.tracer = tracer # <<<<<<<<<<<<<< * * self._filename = UNSET */ - __Pyx_TraceLine(51,0,__PYX_ERR(0, 51, __pyx_L1_error)) + __Pyx_TraceLine(52,0,__PYX_ERR(0, 52, __pyx_L1_error)) __Pyx_INCREF(((PyObject *)__pyx_v_tracer)); __Pyx_GIVEREF(((PyObject *)__pyx_v_tracer)); __Pyx_GOTREF(__pyx_v_self->tracer); __Pyx_DECREF(((PyObject *)__pyx_v_self->tracer)); __pyx_v_self->tracer = __pyx_v_tracer; - /* "hunter/_event.pyx":53 + /* "hunter/_event.pyx":54 * self.tracer = tracer * * self._filename = UNSET # <<<<<<<<<<<<<< * self._fullsource = UNSET * self._lineno = UNSET */ - __Pyx_TraceLine(53,0,__PYX_ERR(0, 53, __pyx_L1_error)) + __Pyx_TraceLine(54,0,__PYX_ERR(0, 54, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_filename); __Pyx_DECREF(__pyx_v_self->_filename); __pyx_v_self->_filename = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":54 + /* "hunter/_event.pyx":55 * * self._filename = UNSET * self._fullsource = UNSET # <<<<<<<<<<<<<< * self._lineno = UNSET * self._module = UNSET */ - __Pyx_TraceLine(54,0,__PYX_ERR(0, 54, __pyx_L1_error)) + __Pyx_TraceLine(55,0,__PYX_ERR(0, 55, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_fullsource); __Pyx_DECREF(__pyx_v_self->_fullsource); __pyx_v_self->_fullsource = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":55 + /* "hunter/_event.pyx":56 * self._filename = UNSET * self._fullsource = UNSET * self._lineno = UNSET # <<<<<<<<<<<<<< * self._module = UNSET * self._source = UNSET */ - __Pyx_TraceLine(55,0,__PYX_ERR(0, 55, __pyx_L1_error)) + __Pyx_TraceLine(56,0,__PYX_ERR(0, 56, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_lineno); __Pyx_DECREF(__pyx_v_self->_lineno); __pyx_v_self->_lineno = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":56 + /* "hunter/_event.pyx":57 * self._fullsource = UNSET * self._lineno = UNSET * self._module = UNSET # <<<<<<<<<<<<<< * self._source = UNSET * self._stdlib = UNSET */ - __Pyx_TraceLine(56,0,__PYX_ERR(0, 56, __pyx_L1_error)) + __Pyx_TraceLine(57,0,__PYX_ERR(0, 57, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_module); __Pyx_DECREF(__pyx_v_self->_module); __pyx_v_self->_module = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":57 + /* "hunter/_event.pyx":58 * self._lineno = UNSET * self._module = UNSET * self._source = UNSET # <<<<<<<<<<<<<< * self._stdlib = UNSET * self._thread = UNSET */ - __Pyx_TraceLine(57,0,__PYX_ERR(0, 57, __pyx_L1_error)) + __Pyx_TraceLine(58,0,__PYX_ERR(0, 58, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_source); __Pyx_DECREF(__pyx_v_self->_source); __pyx_v_self->_source = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":58 + /* "hunter/_event.pyx":59 * self._module = UNSET * self._source = UNSET * self._stdlib = UNSET # <<<<<<<<<<<<<< * self._thread = UNSET * self._threadidn = UNSET */ - __Pyx_TraceLine(58,0,__PYX_ERR(0, 58, __pyx_L1_error)) + __Pyx_TraceLine(59,0,__PYX_ERR(0, 59, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_stdlib); __Pyx_DECREF(__pyx_v_self->_stdlib); __pyx_v_self->_stdlib = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":59 + /* "hunter/_event.pyx":60 * self._source = UNSET * self._stdlib = UNSET * self._thread = UNSET # <<<<<<<<<<<<<< * self._threadidn = UNSET * self._threadname = UNSET */ - __Pyx_TraceLine(59,0,__PYX_ERR(0, 59, __pyx_L1_error)) + __Pyx_TraceLine(60,0,__PYX_ERR(0, 60, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_thread); __Pyx_DECREF(__pyx_v_self->_thread); __pyx_v_self->_thread = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":60 + /* "hunter/_event.pyx":61 * self._stdlib = UNSET * self._thread = UNSET * self._threadidn = UNSET # <<<<<<<<<<<<<< * self._threadname = UNSET * */ - __Pyx_TraceLine(60,0,__PYX_ERR(0, 60, __pyx_L1_error)) + __Pyx_TraceLine(61,0,__PYX_ERR(0, 61, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_threadidn); __Pyx_DECREF(__pyx_v_self->_threadidn); __pyx_v_self->_threadidn = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":61 + /* "hunter/_event.pyx":62 * self._thread = UNSET * self._threadidn = UNSET * self._threadname = UNSET # <<<<<<<<<<<<<< * * property threadid: */ - __Pyx_TraceLine(61,0,__PYX_ERR(0, 61, __pyx_L1_error)) + __Pyx_TraceLine(62,0,__PYX_ERR(0, 62, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GIVEREF(__pyx_v_6hunter_6_event_UNSET); __Pyx_GOTREF(__pyx_v_self->_threadname); __Pyx_DECREF(__pyx_v_self->_threadname); __pyx_v_self->_threadname = __pyx_v_6hunter_6_event_UNSET; - /* "hunter/_event.pyx":45 - * **Users do not instantiate this directly.** + /* "hunter/_event.pyx":46 + * tracer (:obj:`hunter.Tracer`): * """ * def __cinit__(self, FrameType frame, str kind, object arg, Tracer tracer): # <<<<<<<<<<<<<< * self.arg = arg @@ -2231,12 +2231,12 @@ static int __pyx_pf_6hunter_6_event_5Event___cinit__(struct __pyx_obj_6hunter_6_ return __pyx_r; } -/* "hunter/_event.pyx":64 +/* "hunter/_event.pyx":65 * * property threadid: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread ident. If current thread is main thread then it returns ``None``. + * cdef long current + * */ /* Python wrapper */ @@ -2265,39 +2265,39 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ PyObject *__pyx_t_5 = NULL; int __pyx_t_6; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 64, 0, __PYX_ERR(0, 64, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 65, 0, __PYX_ERR(0, 65, __pyx_L1_error)); - /* "hunter/_event.pyx":70 + /* "hunter/_event.pyx":68 * cdef long current * * if self._threadidn is UNSET: # <<<<<<<<<<<<<< * current = PyThread_get_thread_ident() * main = get_main_thread() */ - __Pyx_TraceLine(70,0,__PYX_ERR(0, 70, __pyx_L1_error)) + __Pyx_TraceLine(68,0,__PYX_ERR(0, 68, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_threadidn == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":71 + /* "hunter/_event.pyx":69 * * if self._threadidn is UNSET: * current = PyThread_get_thread_ident() # <<<<<<<<<<<<<< * main = get_main_thread() * if main is not None and current == main.ident: */ - __Pyx_TraceLine(71,0,__PYX_ERR(0, 71, __pyx_L1_error)) + __Pyx_TraceLine(69,0,__PYX_ERR(0, 69, __pyx_L1_error)) __pyx_v_current = PyThread_get_thread_ident(); - /* "hunter/_event.pyx":72 + /* "hunter/_event.pyx":70 * if self._threadidn is UNSET: * current = PyThread_get_thread_ident() * main = get_main_thread() # <<<<<<<<<<<<<< * if main is not None and current == main.ident: * self._threadidn = None */ - __Pyx_TraceLine(72,0,__PYX_ERR(0, 72, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_get_main_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error) + __Pyx_TraceLine(70,0,__PYX_ERR(0, 70, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_get_main_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -2311,20 +2311,20 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_main = __pyx_t_3; __pyx_t_3 = 0; - /* "hunter/_event.pyx":73 + /* "hunter/_event.pyx":71 * current = PyThread_get_thread_ident() * main = get_main_thread() * if main is not None and current == main.ident: # <<<<<<<<<<<<<< * self._threadidn = None * else: */ - __Pyx_TraceLine(73,0,__PYX_ERR(0, 73, __pyx_L1_error)) + __Pyx_TraceLine(71,0,__PYX_ERR(0, 71, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_main != Py_None); __pyx_t_6 = (__pyx_t_1 != 0); if (__pyx_t_6) { @@ -2332,34 +2332,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ __pyx_t_2 = __pyx_t_6; goto __pyx_L5_bool_binop_done; } - __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_current); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_current); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_main, __pyx_n_s_ident); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_main, __pyx_n_s_ident); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 73, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 73, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 71, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __pyx_t_6; __pyx_L5_bool_binop_done:; if (__pyx_t_2) { - /* "hunter/_event.pyx":74 + /* "hunter/_event.pyx":72 * main = get_main_thread() * if main is not None and current == main.ident: * self._threadidn = None # <<<<<<<<<<<<<< * else: * self._threadidn = current */ - __Pyx_TraceLine(74,0,__PYX_ERR(0, 74, __pyx_L1_error)) + __Pyx_TraceLine(72,0,__PYX_ERR(0, 72, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_threadidn); __Pyx_DECREF(__pyx_v_self->_threadidn); __pyx_v_self->_threadidn = Py_None; - /* "hunter/_event.pyx":73 + /* "hunter/_event.pyx":71 * current = PyThread_get_thread_ident() * main = get_main_thread() * if main is not None and current == main.ident: # <<<<<<<<<<<<<< @@ -2369,16 +2369,16 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ goto __pyx_L4; } - /* "hunter/_event.pyx":76 + /* "hunter/_event.pyx":74 * self._threadidn = None * else: * self._threadidn = current # <<<<<<<<<<<<<< * return self._threadidn * */ - __Pyx_TraceLine(76,0,__PYX_ERR(0, 76, __pyx_L1_error)) + __Pyx_TraceLine(74,0,__PYX_ERR(0, 74, __pyx_L1_error)) /*else*/ { - __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_current); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 76, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_current); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __Pyx_GOTREF(__pyx_v_self->_threadidn); @@ -2388,7 +2388,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ } __pyx_L4:; - /* "hunter/_event.pyx":70 + /* "hunter/_event.pyx":68 * cdef long current * * if self._threadidn is UNSET: # <<<<<<<<<<<<<< @@ -2397,25 +2397,25 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ */ } - /* "hunter/_event.pyx":77 + /* "hunter/_event.pyx":75 * else: * self._threadidn = current * return self._threadidn # <<<<<<<<<<<<<< * * property threadname: */ - __Pyx_TraceLine(77,0,__PYX_ERR(0, 77, __pyx_L1_error)) + __Pyx_TraceLine(75,0,__PYX_ERR(0, 75, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_threadidn); __pyx_r = __pyx_v_self->_threadidn; goto __pyx_L0; - /* "hunter/_event.pyx":64 + /* "hunter/_event.pyx":65 * * property threadid: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread ident. If current thread is main thread then it returns ``None``. + * cdef long current + * */ /* function exit code */ @@ -2433,12 +2433,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8threadid___get__(struct __pyx_ return __pyx_r; } -/* "hunter/_event.pyx":80 +/* "hunter/_event.pyx":78 * * property threadname: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread name. + * if self._threadname is UNSET: + * if self._thread is UNSET: */ /* Python wrapper */ @@ -2464,41 +2464,41 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 80, 0, __PYX_ERR(0, 80, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 78, 0, __PYX_ERR(0, 78, __pyx_L1_error)); - /* "hunter/_event.pyx":84 - * Current thread name. - * """ + /* "hunter/_event.pyx":79 + * property threadname: + * def __get__(self): * if self._threadname is UNSET: # <<<<<<<<<<<<<< * if self._thread is UNSET: * self._thread = current_thread() */ - __Pyx_TraceLine(84,0,__PYX_ERR(0, 84, __pyx_L1_error)) + __Pyx_TraceLine(79,0,__PYX_ERR(0, 79, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_threadname == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":85 - * """ + /* "hunter/_event.pyx":80 + * def __get__(self): * if self._threadname is UNSET: * if self._thread is UNSET: # <<<<<<<<<<<<<< * self._thread = current_thread() * self._threadname = self._thread.name */ - __Pyx_TraceLine(85,0,__PYX_ERR(0, 85, __pyx_L1_error)) + __Pyx_TraceLine(80,0,__PYX_ERR(0, 80, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_self->_thread == __pyx_v_6hunter_6_event_UNSET); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "hunter/_event.pyx":86 + /* "hunter/_event.pyx":81 * if self._threadname is UNSET: * if self._thread is UNSET: * self._thread = current_thread() # <<<<<<<<<<<<<< * self._threadname = self._thread.name * return self._threadname */ - __Pyx_TraceLine(86,0,__PYX_ERR(0, 86, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_current_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) + __Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_current_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -2512,7 +2512,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 86, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GIVEREF(__pyx_t_3); @@ -2521,8 +2521,8 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p __pyx_v_self->_thread = __pyx_t_3; __pyx_t_3 = 0; - /* "hunter/_event.pyx":85 - * """ + /* "hunter/_event.pyx":80 + * def __get__(self): * if self._threadname is UNSET: * if self._thread is UNSET: # <<<<<<<<<<<<<< * self._thread = current_thread() @@ -2530,15 +2530,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p */ } - /* "hunter/_event.pyx":87 + /* "hunter/_event.pyx":82 * if self._thread is UNSET: * self._thread = current_thread() * self._threadname = self._thread.name # <<<<<<<<<<<<<< * return self._threadname * */ - __Pyx_TraceLine(87,0,__PYX_ERR(0, 87, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_thread, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 87, __pyx_L1_error) + __Pyx_TraceLine(82,0,__PYX_ERR(0, 82, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_thread, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_GOTREF(__pyx_v_self->_threadname); @@ -2546,34 +2546,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p __pyx_v_self->_threadname = __pyx_t_3; __pyx_t_3 = 0; - /* "hunter/_event.pyx":84 - * Current thread name. - * """ + /* "hunter/_event.pyx":79 + * property threadname: + * def __get__(self): * if self._threadname is UNSET: # <<<<<<<<<<<<<< * if self._thread is UNSET: * self._thread = current_thread() */ } - /* "hunter/_event.pyx":88 + /* "hunter/_event.pyx":83 * self._thread = current_thread() * self._threadname = self._thread.name * return self._threadname # <<<<<<<<<<<<<< * * property thread: */ - __Pyx_TraceLine(88,0,__PYX_ERR(0, 88, __pyx_L1_error)) + __Pyx_TraceLine(83,0,__PYX_ERR(0, 83, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_threadname); __pyx_r = __pyx_v_self->_threadname; goto __pyx_L0; - /* "hunter/_event.pyx":80 + /* "hunter/_event.pyx":78 * * property threadname: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread name. + * if self._threadname is UNSET: + * if self._thread is UNSET: */ /* function exit code */ @@ -2590,12 +2590,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10threadname___get__(struct __p return __pyx_r; } -/* "hunter/_event.pyx":91 +/* "hunter/_event.pyx":86 * * property thread: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread object. + * if self._thread is UNSET: + * self._thread = current_thread() */ /* Python wrapper */ @@ -2621,29 +2621,29 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6thread___get__(struct __pyx_ob PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 91, 0, __PYX_ERR(0, 91, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 86, 0, __PYX_ERR(0, 86, __pyx_L1_error)); - /* "hunter/_event.pyx":95 - * Current thread object. - * """ + /* "hunter/_event.pyx":87 + * property thread: + * def __get__(self): * if self._thread is UNSET: # <<<<<<<<<<<<<< * self._thread = current_thread() * return self._thread */ - __Pyx_TraceLine(95,0,__PYX_ERR(0, 95, __pyx_L1_error)) + __Pyx_TraceLine(87,0,__PYX_ERR(0, 87, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_thread == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":96 - * """ + /* "hunter/_event.pyx":88 + * def __get__(self): * if self._thread is UNSET: * self._thread = current_thread() # <<<<<<<<<<<<<< * return self._thread * */ - __Pyx_TraceLine(96,0,__PYX_ERR(0, 96, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_current_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error) + __Pyx_TraceLine(88,0,__PYX_ERR(0, 88, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_current_thread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -2657,7 +2657,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6thread___get__(struct __pyx_ob } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GIVEREF(__pyx_t_3); @@ -2666,34 +2666,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6thread___get__(struct __pyx_ob __pyx_v_self->_thread = __pyx_t_3; __pyx_t_3 = 0; - /* "hunter/_event.pyx":95 - * Current thread object. - * """ + /* "hunter/_event.pyx":87 + * property thread: + * def __get__(self): * if self._thread is UNSET: # <<<<<<<<<<<<<< * self._thread = current_thread() * return self._thread */ } - /* "hunter/_event.pyx":97 + /* "hunter/_event.pyx":89 * if self._thread is UNSET: * self._thread = current_thread() * return self._thread # <<<<<<<<<<<<<< * * */ - __Pyx_TraceLine(97,0,__PYX_ERR(0, 97, __pyx_L1_error)) + __Pyx_TraceLine(89,0,__PYX_ERR(0, 89, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_thread); __pyx_r = __pyx_v_self->_thread; goto __pyx_L0; - /* "hunter/_event.pyx":91 + /* "hunter/_event.pyx":86 * * property thread: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * Current thread object. + * if self._thread is UNSET: + * self._thread = current_thread() */ /* function exit code */ @@ -2710,12 +2710,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6thread___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":101 +/* "hunter/_event.pyx":93 * * property locals: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A dict with local variables. + * return self._get_locals() + * */ /* Python wrapper */ @@ -2737,29 +2737,29 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6locals___get__(struct __pyx_ob __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 101, 0, __PYX_ERR(0, 101, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 93, 0, __PYX_ERR(0, 93, __pyx_L1_error)); - /* "hunter/_event.pyx":105 - * A dict with local variables. - * """ + /* "hunter/_event.pyx":94 + * property locals: + * def __get__(self): * return self._get_locals() # <<<<<<<<<<<<<< * * cdef object _get_locals(self): */ - __Pyx_TraceLine(105,0,__PYX_ERR(0, 105, __pyx_L1_error)) + __Pyx_TraceLine(94,0,__PYX_ERR(0, 94, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_6hunter_6_event_5Event__get_locals(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 105, __pyx_L1_error) + __pyx_t_1 = __pyx_f_6hunter_6_event_5Event__get_locals(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "hunter/_event.pyx":101 + /* "hunter/_event.pyx":93 * * property locals: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A dict with local variables. + * return self._get_locals() + * */ /* function exit code */ @@ -2774,7 +2774,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6locals___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":107 +/* "hunter/_event.pyx":96 * return self._get_locals() * * cdef object _get_locals(self): # <<<<<<<<<<<<<< @@ -2788,35 +2788,35 @@ static PyObject *__pyx_f_6hunter_6_event_5Event__get_locals(struct __pyx_obj_6hu __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("_get_locals", 0); - __Pyx_TraceCall("_get_locals", __pyx_f[0], 107, 0, __PYX_ERR(0, 107, __pyx_L1_error)); + __Pyx_TraceCall("_get_locals", __pyx_f[0], 96, 0, __PYX_ERR(0, 96, __pyx_L1_error)); - /* "hunter/_event.pyx":108 + /* "hunter/_event.pyx":97 * * cdef object _get_locals(self): * PyFrame_FastToLocals(self.frame) # <<<<<<<<<<<<<< * return self.frame.f_locals * */ - __Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error)) + __Pyx_TraceLine(97,0,__PYX_ERR(0, 97, __pyx_L1_error)) __pyx_t_1 = ((PyObject *)__pyx_v_self->frame); __Pyx_INCREF(__pyx_t_1); PyFrame_FastToLocals(((PyFrameObject *)__pyx_t_1)); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "hunter/_event.pyx":109 + /* "hunter/_event.pyx":98 * cdef object _get_locals(self): * PyFrame_FastToLocals(self.frame) * return self.frame.f_locals # <<<<<<<<<<<<<< * * property globals: */ - __Pyx_TraceLine(109,0,__PYX_ERR(0, 109, __pyx_L1_error)) + __Pyx_TraceLine(98,0,__PYX_ERR(0, 98, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->frame->f_locals); __pyx_r = __pyx_v_self->frame->f_locals; goto __pyx_L0; - /* "hunter/_event.pyx":107 + /* "hunter/_event.pyx":96 * return self._get_locals() * * cdef object _get_locals(self): # <<<<<<<<<<<<<< @@ -2836,12 +2836,12 @@ static PyObject *__pyx_f_6hunter_6_event_5Event__get_locals(struct __pyx_obj_6hu return __pyx_r; } -/* "hunter/_event.pyx":112 +/* "hunter/_event.pyx":101 * * property globals: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A dict with global variables. + * return self._get_globals() + * */ /* Python wrapper */ @@ -2863,29 +2863,29 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_7globals___get__(struct __pyx_o __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 112, 0, __PYX_ERR(0, 112, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 101, 0, __PYX_ERR(0, 101, __pyx_L1_error)); - /* "hunter/_event.pyx":116 - * A dict with global variables. - * """ + /* "hunter/_event.pyx":102 + * property globals: + * def __get__(self): * return self._get_globals() # <<<<<<<<<<<<<< * * cdef object _get_globals(self): */ - __Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error)) + __Pyx_TraceLine(102,0,__PYX_ERR(0, 102, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_6hunter_6_event_5Event__get_globals(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error) + __pyx_t_1 = __pyx_f_6hunter_6_event_5Event__get_globals(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "hunter/_event.pyx":112 + /* "hunter/_event.pyx":101 * * property globals: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A dict with global variables. + * return self._get_globals() + * */ /* function exit code */ @@ -2900,7 +2900,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_7globals___get__(struct __pyx_o return __pyx_r; } -/* "hunter/_event.pyx":118 +/* "hunter/_event.pyx":104 * return self._get_globals() * * cdef object _get_globals(self): # <<<<<<<<<<<<<< @@ -2913,22 +2913,22 @@ static PyObject *__pyx_f_6hunter_6_event_5Event__get_globals(struct __pyx_obj_6h __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_get_globals", 0); - __Pyx_TraceCall("_get_globals", __pyx_f[0], 118, 0, __PYX_ERR(0, 118, __pyx_L1_error)); + __Pyx_TraceCall("_get_globals", __pyx_f[0], 104, 0, __PYX_ERR(0, 104, __pyx_L1_error)); - /* "hunter/_event.pyx":119 + /* "hunter/_event.pyx":105 * * cdef object _get_globals(self): * return self.frame.f_globals # <<<<<<<<<<<<<< * * property function: */ - __Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error)) + __Pyx_TraceLine(105,0,__PYX_ERR(0, 105, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->frame->f_globals); __pyx_r = __pyx_v_self->frame->f_globals; goto __pyx_L0; - /* "hunter/_event.pyx":118 + /* "hunter/_event.pyx":104 * return self._get_globals() * * cdef object _get_globals(self): # <<<<<<<<<<<<<< @@ -2947,12 +2947,12 @@ static PyObject *__pyx_f_6hunter_6_event_5Event__get_globals(struct __pyx_obj_6h return __pyx_r; } -/* "hunter/_event.pyx":122 +/* "hunter/_event.pyx":108 * * property function: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with function name. + * return self.frame.f_code.co_name + * */ /* Python wrapper */ @@ -2974,29 +2974,29 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8function___get__(struct __pyx_ __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 122, 0, __PYX_ERR(0, 122, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 108, 0, __PYX_ERR(0, 108, __pyx_L1_error)); - /* "hunter/_event.pyx":126 - * A string with function name. - * """ + /* "hunter/_event.pyx":109 + * property function: + * def __get__(self): * return self.frame.f_code.co_name # <<<<<<<<<<<<<< * * property module: */ - __Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error)) + __Pyx_TraceLine(109,0,__PYX_ERR(0, 109, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->frame->f_code), __pyx_n_s_co_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->frame->f_code), __pyx_n_s_co_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "hunter/_event.pyx":122 + /* "hunter/_event.pyx":108 * * property function: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with function name. + * return self.frame.f_code.co_name + * */ /* function exit code */ @@ -3011,9 +3011,9 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8function___get__(struct __pyx_ return __pyx_r; } -/* "hunter/_event.pyx":132 - * A string with module name (eg: ``"foo.bar"``). - * """ +/* "hunter/_event.pyx":112 + * + * property module: * def __get__(self): # <<<<<<<<<<<<<< * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') @@ -3042,60 +3042,60 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6module___get__(struct __pyx_ob PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 132, 0, __PYX_ERR(0, 132, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 112, 0, __PYX_ERR(0, 112, __pyx_L1_error)); - /* "hunter/_event.pyx":133 - * """ + /* "hunter/_event.pyx":113 + * property module: * def __get__(self): * if self._module is UNSET: # <<<<<<<<<<<<<< * module = self.frame.f_globals.get('__name__', '') * if module is None: */ - __Pyx_TraceLine(133,0,__PYX_ERR(0, 133, __pyx_L1_error)) + __Pyx_TraceLine(113,0,__PYX_ERR(0, 113, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_module == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":134 + /* "hunter/_event.pyx":114 * def __get__(self): * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') # <<<<<<<<<<<<<< * if module is None: * module = '' */ - __Pyx_TraceLine(134,0,__PYX_ERR(0, 134, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->frame->f_globals, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 134, __pyx_L1_error) + __Pyx_TraceLine(114,0,__PYX_ERR(0, 114, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->frame->f_globals, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_module = __pyx_t_4; __pyx_t_4 = 0; - /* "hunter/_event.pyx":135 + /* "hunter/_event.pyx":115 * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') * if module is None: # <<<<<<<<<<<<<< * module = '' * */ - __Pyx_TraceLine(135,0,__PYX_ERR(0, 135, __pyx_L1_error)) + __Pyx_TraceLine(115,0,__PYX_ERR(0, 115, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_module == Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "hunter/_event.pyx":136 + /* "hunter/_event.pyx":116 * module = self.frame.f_globals.get('__name__', '') * if module is None: * module = '' # <<<<<<<<<<<<<< * * self._module = module */ - __Pyx_TraceLine(136,0,__PYX_ERR(0, 136, __pyx_L1_error)) + __Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error)) __Pyx_INCREF(__pyx_kp_u_); __Pyx_DECREF_SET(__pyx_v_module, __pyx_kp_u_); - /* "hunter/_event.pyx":135 + /* "hunter/_event.pyx":115 * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') * if module is None: # <<<<<<<<<<<<<< @@ -3104,22 +3104,22 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6module___get__(struct __pyx_ob */ } - /* "hunter/_event.pyx":138 + /* "hunter/_event.pyx":118 * module = '' * * self._module = module # <<<<<<<<<<<<<< * return self._module * */ - __Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error)) + __Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_module); __Pyx_GIVEREF(__pyx_v_module); __Pyx_GOTREF(__pyx_v_self->_module); __Pyx_DECREF(__pyx_v_self->_module); __pyx_v_self->_module = __pyx_v_module; - /* "hunter/_event.pyx":133 - * """ + /* "hunter/_event.pyx":113 + * property module: * def __get__(self): * if self._module is UNSET: # <<<<<<<<<<<<<< * module = self.frame.f_globals.get('__name__', '') @@ -3127,22 +3127,22 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6module___get__(struct __pyx_ob */ } - /* "hunter/_event.pyx":139 + /* "hunter/_event.pyx":119 * * self._module = module * return self._module # <<<<<<<<<<<<<< * * property filename: */ - __Pyx_TraceLine(139,0,__PYX_ERR(0, 139, __pyx_L1_error)) + __Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_module); __pyx_r = __pyx_v_self->_module; goto __pyx_L0; - /* "hunter/_event.pyx":132 - * A string with module name (eg: ``"foo.bar"``). - * """ + /* "hunter/_event.pyx":112 + * + * property module: * def __get__(self): # <<<<<<<<<<<<<< * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') @@ -3162,12 +3162,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6module___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":142 +/* "hunter/_event.pyx":122 * * property filename: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with absolute path to file. + * if self._filename is UNSET: + * filename = self.frame.f_globals.get('__file__', '') */ /* Python wrapper */ @@ -3200,60 +3200,60 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 142, 0, __PYX_ERR(0, 142, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 122, 0, __PYX_ERR(0, 122, __pyx_L1_error)); - /* "hunter/_event.pyx":146 - * A string with absolute path to file. - * """ + /* "hunter/_event.pyx":123 + * property filename: + * def __get__(self): * if self._filename is UNSET: # <<<<<<<<<<<<<< * filename = self.frame.f_globals.get('__file__', '') * if filename is None: */ - __Pyx_TraceLine(146,0,__PYX_ERR(0, 146, __pyx_L1_error)) + __Pyx_TraceLine(123,0,__PYX_ERR(0, 123, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_filename == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":147 - * """ + /* "hunter/_event.pyx":124 + * def __get__(self): * if self._filename is UNSET: * filename = self.frame.f_globals.get('__file__', '') # <<<<<<<<<<<<<< * if filename is None: * filename = '' */ - __Pyx_TraceLine(147,0,__PYX_ERR(0, 147, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->frame->f_globals, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error) + __Pyx_TraceLine(124,0,__PYX_ERR(0, 124, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->frame->f_globals, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_filename = __pyx_t_4; __pyx_t_4 = 0; - /* "hunter/_event.pyx":148 + /* "hunter/_event.pyx":125 * if self._filename is UNSET: * filename = self.frame.f_globals.get('__file__', '') * if filename is None: # <<<<<<<<<<<<<< * filename = '' * elif filename.endswith(('.pyc', '.pyo')): */ - __Pyx_TraceLine(148,0,__PYX_ERR(0, 148, __pyx_L1_error)) + __Pyx_TraceLine(125,0,__PYX_ERR(0, 125, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_filename == Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "hunter/_event.pyx":149 + /* "hunter/_event.pyx":126 * filename = self.frame.f_globals.get('__file__', '') * if filename is None: * filename = '' # <<<<<<<<<<<<<< * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] */ - __Pyx_TraceLine(149,0,__PYX_ERR(0, 149, __pyx_L1_error)) + __Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error)) __Pyx_INCREF(__pyx_kp_u_); __Pyx_DECREF_SET(__pyx_v_filename, __pyx_kp_u_); - /* "hunter/_event.pyx":148 + /* "hunter/_event.pyx":125 * if self._filename is UNSET: * filename = self.frame.f_globals.get('__file__', '') * if filename is None: # <<<<<<<<<<<<<< @@ -3263,15 +3263,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ goto __pyx_L4; } - /* "hunter/_event.pyx":150 + /* "hunter/_event.pyx":127 * if filename is None: * filename = '' * elif filename.endswith(('.pyc', '.pyo')): # <<<<<<<<<<<<<< * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): */ - __Pyx_TraceLine(150,0,__PYX_ERR(0, 150, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_endswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 150, __pyx_L1_error) + __Pyx_TraceLine(127,0,__PYX_ERR(0, 127, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_endswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -3285,27 +3285,27 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_tuple__4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_tuple__4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 150, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 150, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "hunter/_event.pyx":151 + /* "hunter/_event.pyx":128 * filename = '' * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] # <<<<<<<<<<<<<< * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) */ - __Pyx_TraceLine(151,0,__PYX_ERR(0, 151, __pyx_L1_error)) - __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_filename, 0, -1L, NULL, NULL, &__pyx_slice__5, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error) + __Pyx_TraceLine(128,0,__PYX_ERR(0, 128, __pyx_L1_error)) + __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_filename, 0, -1L, NULL, NULL, &__pyx_slice__5, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_event.pyx":150 + /* "hunter/_event.pyx":127 * if filename is None: * filename = '' * elif filename.endswith(('.pyc', '.pyo')): # <<<<<<<<<<<<<< @@ -3315,15 +3315,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ goto __pyx_L4; } - /* "hunter/_event.pyx":152 + /* "hunter/_event.pyx":129 * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): # <<<<<<<<<<<<<< * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): */ - __Pyx_TraceLine(152,0,__PYX_ERR(0, 152, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_endswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error) + __Pyx_TraceLine(129,0,__PYX_ERR(0, 129, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_filename, __pyx_n_s_endswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -3337,24 +3337,24 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_tuple__6) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_tuple__6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 152, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 152, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "hunter/_event.pyx":153 + /* "hunter/_event.pyx":130 * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) # <<<<<<<<<<<<<< * for ext in ('.pyx', '.py'): * cyfilename = basename + ext */ - __Pyx_TraceLine(153,0,__PYX_ERR(0, 153, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CYTHON_SUFFIX_RE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) + __Pyx_TraceLine(130,0,__PYX_ERR(0, 130, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CYTHON_SUFFIX_RE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_sub); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_sub); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; @@ -3372,7 +3372,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_kp_u_, __pyx_v_filename}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -3380,13 +3380,13 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_kp_u_, __pyx_v_filename}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -3397,7 +3397,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ __Pyx_INCREF(__pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_filename); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } @@ -3405,48 +3405,48 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ __pyx_v_basename = __pyx_t_4; __pyx_t_4 = 0; - /* "hunter/_event.pyx":154 + /* "hunter/_event.pyx":131 * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): # <<<<<<<<<<<<<< * cyfilename = basename + ext * if exists(cyfilename): */ - __Pyx_TraceLine(154,0,__PYX_ERR(0, 154, __pyx_L1_error)) + __Pyx_TraceLine(131,0,__PYX_ERR(0, 131, __pyx_L1_error)) __pyx_t_4 = __pyx_tuple__7; __Pyx_INCREF(__pyx_t_4); __pyx_t_8 = 0; for (;;) { if (__pyx_t_8 >= 2) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 154, __pyx_L1_error) + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 131, __pyx_L1_error) #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error) + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_XDECREF_SET(__pyx_v_ext, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "hunter/_event.pyx":155 + /* "hunter/_event.pyx":132 * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): * cyfilename = basename + ext # <<<<<<<<<<<<<< * if exists(cyfilename): * filename = cyfilename */ - __Pyx_TraceLine(155,0,__PYX_ERR(0, 155, __pyx_L1_error)) - __pyx_t_5 = PyNumber_Add(__pyx_v_basename, __pyx_v_ext); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) + __Pyx_TraceLine(132,0,__PYX_ERR(0, 132, __pyx_L1_error)) + __pyx_t_5 = PyNumber_Add(__pyx_v_basename, __pyx_v_ext); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_cyfilename, __pyx_t_5); __pyx_t_5 = 0; - /* "hunter/_event.pyx":156 + /* "hunter/_event.pyx":133 * for ext in ('.pyx', '.py'): * cyfilename = basename + ext * if exists(cyfilename): # <<<<<<<<<<<<<< * filename = cyfilename * break */ - __Pyx_TraceLine(156,0,__PYX_ERR(0, 156, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_exists); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 156, __pyx_L1_error) + __Pyx_TraceLine(133,0,__PYX_ERR(0, 133, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_exists); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -3460,35 +3460,35 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ } __pyx_t_5 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_3, __pyx_v_cyfilename) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_cyfilename); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 156, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 156, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "hunter/_event.pyx":157 + /* "hunter/_event.pyx":134 * cyfilename = basename + ext * if exists(cyfilename): * filename = cyfilename # <<<<<<<<<<<<<< * break * */ - __Pyx_TraceLine(157,0,__PYX_ERR(0, 157, __pyx_L1_error)) + __Pyx_TraceLine(134,0,__PYX_ERR(0, 134, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_cyfilename); __Pyx_DECREF_SET(__pyx_v_filename, __pyx_v_cyfilename); - /* "hunter/_event.pyx":158 + /* "hunter/_event.pyx":135 * if exists(cyfilename): * filename = cyfilename * break # <<<<<<<<<<<<<< * * self._filename = filename */ - __Pyx_TraceLine(158,0,__PYX_ERR(0, 158, __pyx_L1_error)) + __Pyx_TraceLine(135,0,__PYX_ERR(0, 135, __pyx_L1_error)) goto __pyx_L6_break; - /* "hunter/_event.pyx":156 + /* "hunter/_event.pyx":133 * for ext in ('.pyx', '.py'): * cyfilename = basename + ext * if exists(cyfilename): # <<<<<<<<<<<<<< @@ -3497,19 +3497,19 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ */ } - /* "hunter/_event.pyx":154 + /* "hunter/_event.pyx":131 * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): # <<<<<<<<<<<<<< * cyfilename = basename + ext * if exists(cyfilename): */ - __Pyx_TraceLine(154,0,__PYX_ERR(0, 154, __pyx_L1_error)) + __Pyx_TraceLine(131,0,__PYX_ERR(0, 131, __pyx_L1_error)) } __pyx_L6_break:; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_event.pyx":152 + /* "hunter/_event.pyx":129 * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): # <<<<<<<<<<<<<< @@ -3519,48 +3519,48 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ } __pyx_L4:; - /* "hunter/_event.pyx":160 + /* "hunter/_event.pyx":137 * break * * self._filename = filename # <<<<<<<<<<<<<< * return self._filename * */ - __Pyx_TraceLine(160,0,__PYX_ERR(0, 160, __pyx_L1_error)) + __Pyx_TraceLine(137,0,__PYX_ERR(0, 137, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_filename); __Pyx_GIVEREF(__pyx_v_filename); __Pyx_GOTREF(__pyx_v_self->_filename); __Pyx_DECREF(__pyx_v_self->_filename); __pyx_v_self->_filename = __pyx_v_filename; - /* "hunter/_event.pyx":146 - * A string with absolute path to file. - * """ + /* "hunter/_event.pyx":123 + * property filename: + * def __get__(self): * if self._filename is UNSET: # <<<<<<<<<<<<<< * filename = self.frame.f_globals.get('__file__', '') * if filename is None: */ } - /* "hunter/_event.pyx":161 + /* "hunter/_event.pyx":138 * * self._filename = filename * return self._filename # <<<<<<<<<<<<<< * * property lineno: */ - __Pyx_TraceLine(161,0,__PYX_ERR(0, 161, __pyx_L1_error)) + __Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_filename); __pyx_r = __pyx_v_self->_filename; goto __pyx_L0; - /* "hunter/_event.pyx":142 + /* "hunter/_event.pyx":122 * * property filename: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with absolute path to file. + * if self._filename is UNSET: + * filename = self.frame.f_globals.get('__file__', '') */ /* function exit code */ @@ -3582,12 +3582,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_8filename___get__(struct __pyx_ return __pyx_r; } -/* "hunter/_event.pyx":164 +/* "hunter/_event.pyx":141 * * property lineno: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * An integer with line number in file. + * if self._lineno is UNSET: + * self._lineno = self.frame.f_lineno */ /* Python wrapper */ @@ -3611,29 +3611,29 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6lineno___get__(struct __pyx_ob int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 164, 0, __PYX_ERR(0, 164, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 141, 0, __PYX_ERR(0, 141, __pyx_L1_error)); - /* "hunter/_event.pyx":168 - * An integer with line number in file. - * """ + /* "hunter/_event.pyx":142 + * property lineno: + * def __get__(self): * if self._lineno is UNSET: # <<<<<<<<<<<<<< * self._lineno = self.frame.f_lineno * return self._lineno */ - __Pyx_TraceLine(168,0,__PYX_ERR(0, 168, __pyx_L1_error)) + __Pyx_TraceLine(142,0,__PYX_ERR(0, 142, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_lineno == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":169 - * """ + /* "hunter/_event.pyx":143 + * def __get__(self): * if self._lineno is UNSET: * self._lineno = self.frame.f_lineno # <<<<<<<<<<<<<< * return self._lineno * */ - __Pyx_TraceLine(169,0,__PYX_ERR(0, 169, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->frame->f_lineno); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 169, __pyx_L1_error) + __Pyx_TraceLine(143,0,__PYX_ERR(0, 143, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->frame->f_lineno); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_GOTREF(__pyx_v_self->_lineno); @@ -3641,34 +3641,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6lineno___get__(struct __pyx_ob __pyx_v_self->_lineno = __pyx_t_3; __pyx_t_3 = 0; - /* "hunter/_event.pyx":168 - * An integer with line number in file. - * """ + /* "hunter/_event.pyx":142 + * property lineno: + * def __get__(self): * if self._lineno is UNSET: # <<<<<<<<<<<<<< * self._lineno = self.frame.f_lineno * return self._lineno */ } - /* "hunter/_event.pyx":170 + /* "hunter/_event.pyx":144 * if self._lineno is UNSET: * self._lineno = self.frame.f_lineno * return self._lineno # <<<<<<<<<<<<<< * * property code: */ - __Pyx_TraceLine(170,0,__PYX_ERR(0, 170, __pyx_L1_error)) + __Pyx_TraceLine(144,0,__PYX_ERR(0, 144, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_lineno); __pyx_r = __pyx_v_self->_lineno; goto __pyx_L0; - /* "hunter/_event.pyx":164 + /* "hunter/_event.pyx":141 * * property lineno: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * An integer with line number in file. + * if self._lineno is UNSET: + * self._lineno = self.frame.f_lineno */ /* function exit code */ @@ -3683,12 +3683,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6lineno___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":173 +/* "hunter/_event.pyx":147 * * property code: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A code object (not a string). + * return self.frame.f_code + * */ /* Python wrapper */ @@ -3709,27 +3709,27 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_4code___get__(struct __pyx_obj_ __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 173, 0, __PYX_ERR(0, 173, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 147, 0, __PYX_ERR(0, 147, __pyx_L1_error)); - /* "hunter/_event.pyx":177 - * A code object (not a string). - * """ + /* "hunter/_event.pyx":148 + * property code: + * def __get__(self): * return self.frame.f_code # <<<<<<<<<<<<<< * * property stdlib: */ - __Pyx_TraceLine(177,0,__PYX_ERR(0, 177, __pyx_L1_error)) + __Pyx_TraceLine(148,0,__PYX_ERR(0, 148, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->frame->f_code)); __pyx_r = ((PyObject *)__pyx_v_self->frame->f_code); goto __pyx_L0; - /* "hunter/_event.pyx":173 + /* "hunter/_event.pyx":147 * * property code: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A code object (not a string). + * return self.frame.f_code + * */ /* function exit code */ @@ -3743,12 +3743,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_4code___get__(struct __pyx_obj_ return __pyx_r; } -/* "hunter/_event.pyx":180 +/* "hunter/_event.pyx":151 * * property stdlib: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A boolean flag. ``True`` if frame is in stdlib. + * if self._stdlib is UNSET: + * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): */ /* Python wrapper */ @@ -3775,40 +3775,40 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 180, 0, __PYX_ERR(0, 180, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 151, 0, __PYX_ERR(0, 151, __pyx_L1_error)); - /* "hunter/_event.pyx":184 - * A boolean flag. ``True`` if frame is in stdlib. - * """ + /* "hunter/_event.pyx":152 + * property stdlib: + * def __get__(self): * if self._stdlib is UNSET: # <<<<<<<<<<<<<< * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): * self._stdlib = False */ - __Pyx_TraceLine(184,0,__PYX_ERR(0, 184, __pyx_L1_error)) + __Pyx_TraceLine(152,0,__PYX_ERR(0, 152, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_stdlib == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":185 - * """ + /* "hunter/_event.pyx":153 + * def __get__(self): * if self._stdlib is UNSET: * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): # <<<<<<<<<<<<<< * self._stdlib = False * elif self.filename.startswith(SITE_PACKAGES_PATHS): */ - __Pyx_TraceLine(185,0,__PYX_ERR(0, 185, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_module); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error) + __Pyx_TraceLine(153,0,__PYX_ERR(0, 153, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_module); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_pkg_resources, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 185, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_pkg_resources, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!__pyx_t_1) { } else { __pyx_t_2 = __pyx_t_1; goto __pyx_L5_bool_binop_done; } - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_module); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 185, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_module); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_startswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 185, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_startswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; @@ -3823,31 +3823,31 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob } __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_kp_u_pkg_resources_2) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_pkg_resources_2); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 185, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __pyx_t_1; __pyx_L5_bool_binop_done:; if (__pyx_t_2) { - /* "hunter/_event.pyx":186 + /* "hunter/_event.pyx":154 * if self._stdlib is UNSET: * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): * self._stdlib = False # <<<<<<<<<<<<<< * elif self.filename.startswith(SITE_PACKAGES_PATHS): * # if it's in site-packages then its definitely not stdlib */ - __Pyx_TraceLine(186,0,__PYX_ERR(0, 186, __pyx_L1_error)) + __Pyx_TraceLine(154,0,__PYX_ERR(0, 154, __pyx_L1_error)) __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); __Pyx_GOTREF(__pyx_v_self->_stdlib); __Pyx_DECREF(__pyx_v_self->_stdlib); __pyx_v_self->_stdlib = Py_False; - /* "hunter/_event.pyx":185 - * """ + /* "hunter/_event.pyx":153 + * def __get__(self): * if self._stdlib is UNSET: * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): # <<<<<<<<<<<<<< * self._stdlib = False @@ -3856,20 +3856,20 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob goto __pyx_L4; } - /* "hunter/_event.pyx":187 + /* "hunter/_event.pyx":155 * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): * self._stdlib = False * elif self.filename.startswith(SITE_PACKAGES_PATHS): # <<<<<<<<<<<<<< * # if it's in site-packages then its definitely not stdlib * self._stdlib = False */ - __Pyx_TraceLine(187,0,__PYX_ERR(0, 187, __pyx_L1_error)) - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 187, __pyx_L1_error) + __Pyx_TraceLine(155,0,__PYX_ERR(0, 155, __pyx_L1_error)) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_SITE_PACKAGES_PATHS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 187, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_SITE_PACKAGES_PATHS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -3884,28 +3884,28 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 187, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 187, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "hunter/_event.pyx":189 + /* "hunter/_event.pyx":157 * elif self.filename.startswith(SITE_PACKAGES_PATHS): * # if it's in site-packages then its definitely not stdlib * self._stdlib = False # <<<<<<<<<<<<<< * elif self.filename.startswith(SYS_PREFIX_PATHS): * self._stdlib = True */ - __Pyx_TraceLine(189,0,__PYX_ERR(0, 189, __pyx_L1_error)) + __Pyx_TraceLine(157,0,__PYX_ERR(0, 157, __pyx_L1_error)) __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); __Pyx_GOTREF(__pyx_v_self->_stdlib); __Pyx_DECREF(__pyx_v_self->_stdlib); __pyx_v_self->_stdlib = Py_False; - /* "hunter/_event.pyx":187 + /* "hunter/_event.pyx":155 * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): * self._stdlib = False * elif self.filename.startswith(SITE_PACKAGES_PATHS): # <<<<<<<<<<<<<< @@ -3915,20 +3915,20 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob goto __pyx_L4; } - /* "hunter/_event.pyx":190 + /* "hunter/_event.pyx":158 * # if it's in site-packages then its definitely not stdlib * self._stdlib = False * elif self.filename.startswith(SYS_PREFIX_PATHS): # <<<<<<<<<<<<<< * self._stdlib = True * else: */ - __Pyx_TraceLine(190,0,__PYX_ERR(0, 190, __pyx_L1_error)) - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_TraceLine(158,0,__PYX_ERR(0, 158, __pyx_L1_error)) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_startswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_startswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_SYS_PREFIX_PATHS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 190, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_SYS_PREFIX_PATHS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { @@ -3943,28 +3943,28 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 190, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 190, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "hunter/_event.pyx":191 + /* "hunter/_event.pyx":159 * self._stdlib = False * elif self.filename.startswith(SYS_PREFIX_PATHS): * self._stdlib = True # <<<<<<<<<<<<<< * else: * self._stdlib = False */ - __Pyx_TraceLine(191,0,__PYX_ERR(0, 191, __pyx_L1_error)) + __Pyx_TraceLine(159,0,__PYX_ERR(0, 159, __pyx_L1_error)) __Pyx_INCREF(Py_True); __Pyx_GIVEREF(Py_True); __Pyx_GOTREF(__pyx_v_self->_stdlib); __Pyx_DECREF(__pyx_v_self->_stdlib); __pyx_v_self->_stdlib = Py_True; - /* "hunter/_event.pyx":190 + /* "hunter/_event.pyx":158 * # if it's in site-packages then its definitely not stdlib * self._stdlib = False * elif self.filename.startswith(SYS_PREFIX_PATHS): # <<<<<<<<<<<<<< @@ -3974,14 +3974,14 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob goto __pyx_L4; } - /* "hunter/_event.pyx":193 + /* "hunter/_event.pyx":161 * self._stdlib = True * else: * self._stdlib = False # <<<<<<<<<<<<<< * return self._stdlib * */ - __Pyx_TraceLine(193,0,__PYX_ERR(0, 193, __pyx_L1_error)) + __Pyx_TraceLine(161,0,__PYX_ERR(0, 161, __pyx_L1_error)) /*else*/ { __Pyx_INCREF(Py_False); __Pyx_GIVEREF(Py_False); @@ -3991,34 +3991,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob } __pyx_L4:; - /* "hunter/_event.pyx":184 - * A boolean flag. ``True`` if frame is in stdlib. - * """ + /* "hunter/_event.pyx":152 + * property stdlib: + * def __get__(self): * if self._stdlib is UNSET: # <<<<<<<<<<<<<< * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): * self._stdlib = False */ } - /* "hunter/_event.pyx":194 + /* "hunter/_event.pyx":162 * else: * self._stdlib = False * return self._stdlib # <<<<<<<<<<<<<< * * property fullsource: */ - __Pyx_TraceLine(194,0,__PYX_ERR(0, 194, __pyx_L1_error)) + __Pyx_TraceLine(162,0,__PYX_ERR(0, 162, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_stdlib); __pyx_r = __pyx_v_self->_stdlib; goto __pyx_L0; - /* "hunter/_event.pyx":180 + /* "hunter/_event.pyx":151 * * property stdlib: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A boolean flag. ``True`` if frame is in stdlib. + * if self._stdlib is UNSET: + * if self.module == 'pkg_resources' or self.module.startswith('pkg_resources.'): */ /* function exit code */ @@ -4036,12 +4036,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6stdlib___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":197 +/* "hunter/_event.pyx":165 * * property fullsource: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with the sourcecode for the current statement (from ``linecache`` - failures are ignored). + * if self._fullsource is UNSET: + * try: */ /* Python wrapper */ @@ -4083,28 +4083,28 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 197, 0, __PYX_ERR(0, 197, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 165, 0, __PYX_ERR(0, 165, __pyx_L1_error)); - /* "hunter/_event.pyx":203 - * May include multiple lines if it's a class/function definition (will include decorators). - * """ + /* "hunter/_event.pyx":166 + * property fullsource: + * def __get__(self): * if self._fullsource is UNSET: # <<<<<<<<<<<<<< * try: * self._fullsource = self._raw_fullsource */ - __Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error)) + __Pyx_TraceLine(166,0,__PYX_ERR(0, 166, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_fullsource == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":204 - * """ + /* "hunter/_event.pyx":167 + * def __get__(self): * if self._fullsource is UNSET: * try: # <<<<<<<<<<<<<< * self._fullsource = self._raw_fullsource * except Exception as exc: */ - __Pyx_TraceLine(204,0,__PYX_ERR(0, 204, __pyx_L1_error)) + __Pyx_TraceLine(167,0,__PYX_ERR(0, 167, __pyx_L1_error)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign @@ -4114,15 +4114,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { - /* "hunter/_event.pyx":205 + /* "hunter/_event.pyx":168 * if self._fullsource is UNSET: * try: * self._fullsource = self._raw_fullsource # <<<<<<<<<<<<<< * except Exception as exc: * self._fullsource = "??? NO SOURCE: {!r}".format(exc) */ - __Pyx_TraceLine(205,0,__PYX_ERR(0, 205, __pyx_L4_error)) - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_raw_fullsource); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 205, __pyx_L4_error) + __Pyx_TraceLine(168,0,__PYX_ERR(0, 168, __pyx_L4_error)) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_raw_fullsource); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 168, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->_fullsource); @@ -4130,8 +4130,8 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __pyx_v_self->_fullsource = __pyx_t_6; __pyx_t_6 = 0; - /* "hunter/_event.pyx":204 - * """ + /* "hunter/_event.pyx":167 + * def __get__(self): * if self._fullsource is UNSET: * try: # <<<<<<<<<<<<<< * self._fullsource = self._raw_fullsource @@ -4145,18 +4145,18 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __pyx_L4_error:; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "hunter/_event.pyx":206 + /* "hunter/_event.pyx":169 * try: * self._fullsource = self._raw_fullsource * except Exception as exc: # <<<<<<<<<<<<<< * self._fullsource = "??? NO SOURCE: {!r}".format(exc) * */ - __Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L6_except_error)) + __Pyx_TraceLine(169,0,__PYX_ERR(0, 169, __pyx_L6_except_error)) __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_7) { __Pyx_AddTraceback("hunter._event.Event.fullsource.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(0, 206, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(0, 169, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_9); @@ -4164,15 +4164,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __pyx_v_exc = __pyx_t_8; /*try:*/ { - /* "hunter/_event.pyx":207 + /* "hunter/_event.pyx":170 * self._fullsource = self._raw_fullsource * except Exception as exc: * self._fullsource = "??? NO SOURCE: {!r}".format(exc) # <<<<<<<<<<<<<< * * return self._fullsource */ - __Pyx_TraceLine(207,0,__PYX_ERR(0, 207, __pyx_L15_error)) - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_NO_SOURCE_r, __pyx_n_s_format); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 207, __pyx_L15_error) + __Pyx_TraceLine(170,0,__PYX_ERR(0, 170, __pyx_L15_error)) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_NO_SOURCE_r, __pyx_n_s_format); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 170, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_12 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) { @@ -4186,7 +4186,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p } __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_12, __pyx_v_exc) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_v_exc); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 207, __pyx_L15_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 170, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GIVEREF(__pyx_t_10); @@ -4196,14 +4196,14 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __pyx_t_10 = 0; } - /* "hunter/_event.pyx":206 + /* "hunter/_event.pyx":169 * try: * self._fullsource = self._raw_fullsource * except Exception as exc: # <<<<<<<<<<<<<< * self._fullsource = "??? NO SOURCE: {!r}".format(exc) * */ - __Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L6_except_error)) + __Pyx_TraceLine(169,0,__PYX_ERR(0, 169, __pyx_L6_except_error)) /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_exc); @@ -4255,8 +4255,8 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "hunter/_event.pyx":204 - * """ + /* "hunter/_event.pyx":167 + * def __get__(self): * if self._fullsource is UNSET: * try: # <<<<<<<<<<<<<< * self._fullsource = self._raw_fullsource @@ -4275,34 +4275,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p __pyx_L9_try_end:; } - /* "hunter/_event.pyx":203 - * May include multiple lines if it's a class/function definition (will include decorators). - * """ + /* "hunter/_event.pyx":166 + * property fullsource: + * def __get__(self): * if self._fullsource is UNSET: # <<<<<<<<<<<<<< * try: * self._fullsource = self._raw_fullsource */ } - /* "hunter/_event.pyx":209 + /* "hunter/_event.pyx":172 * self._fullsource = "??? NO SOURCE: {!r}".format(exc) * * return self._fullsource # <<<<<<<<<<<<<< * * property source: */ - __Pyx_TraceLine(209,0,__PYX_ERR(0, 209, __pyx_L1_error)) + __Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_fullsource); __pyx_r = __pyx_v_self->_fullsource; goto __pyx_L0; - /* "hunter/_event.pyx":197 + /* "hunter/_event.pyx":165 * * property fullsource: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with the sourcecode for the current statement (from ``linecache`` - failures are ignored). + * if self._fullsource is UNSET: + * try: */ /* function exit code */ @@ -4323,12 +4323,12 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_10fullsource___get__(struct __p return __pyx_r; } -/* "hunter/_event.pyx":212 +/* "hunter/_event.pyx":175 * * property source: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with the sourcecode for the current line (from ``linecache`` - failures are ignored). + * if self._source is UNSET: + * try: */ /* Python wrapper */ @@ -4370,28 +4370,28 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob PyObject *__pyx_t_19 = NULL; PyObject *__pyx_t_20 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 212, 0, __PYX_ERR(0, 212, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 175, 0, __PYX_ERR(0, 175, __pyx_L1_error)); - /* "hunter/_event.pyx":218 - * Fast but sometimes incomplete. - * """ + /* "hunter/_event.pyx":176 + * property source: + * def __get__(self): * if self._source is UNSET: # <<<<<<<<<<<<<< * try: * self._source = getline(self.filename, self.lineno) */ - __Pyx_TraceLine(218,0,__PYX_ERR(0, 218, __pyx_L1_error)) + __Pyx_TraceLine(176,0,__PYX_ERR(0, 176, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->_source == __pyx_v_6hunter_6_event_UNSET); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_event.pyx":219 - * """ + /* "hunter/_event.pyx":177 + * def __get__(self): * if self._source is UNSET: * try: # <<<<<<<<<<<<<< * self._source = getline(self.filename, self.lineno) * except Exception as exc: */ - __Pyx_TraceLine(219,0,__PYX_ERR(0, 219, __pyx_L1_error)) + __Pyx_TraceLine(177,0,__PYX_ERR(0, 177, __pyx_L1_error)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign @@ -4401,19 +4401,19 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { - /* "hunter/_event.pyx":220 + /* "hunter/_event.pyx":178 * if self._source is UNSET: * try: * self._source = getline(self.filename, self.lineno) # <<<<<<<<<<<<<< * except Exception as exc: * self._source = "??? NO SOURCE: {!r}".format(exc) */ - __Pyx_TraceLine(220,0,__PYX_ERR(0, 220, __pyx_L4_error)) - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_getline); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 220, __pyx_L4_error) + __Pyx_TraceLine(178,0,__PYX_ERR(0, 178, __pyx_L4_error)) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_getline); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; __pyx_t_11 = 0; @@ -4430,7 +4430,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_8, __pyx_t_9}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -4440,7 +4440,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_8, __pyx_t_9}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -4448,7 +4448,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -4459,7 +4459,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_t_9); __pyx_t_8 = 0; __pyx_t_9 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_12, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 220, __pyx_L4_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_12, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } @@ -4470,8 +4470,8 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __pyx_v_self->_source = __pyx_t_6; __pyx_t_6 = 0; - /* "hunter/_event.pyx":219 - * """ + /* "hunter/_event.pyx":177 + * def __get__(self): * if self._source is UNSET: * try: # <<<<<<<<<<<<<< * self._source = getline(self.filename, self.lineno) @@ -4490,18 +4490,18 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "hunter/_event.pyx":221 + /* "hunter/_event.pyx":179 * try: * self._source = getline(self.filename, self.lineno) * except Exception as exc: # <<<<<<<<<<<<<< * self._source = "??? NO SOURCE: {!r}".format(exc) * */ - __Pyx_TraceLine(221,0,__PYX_ERR(0, 221, __pyx_L6_except_error)) + __Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L6_except_error)) __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("hunter._event.Event.source.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_12) < 0) __PYX_ERR(0, 221, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_12) < 0) __PYX_ERR(0, 179, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_12); @@ -4509,15 +4509,15 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __pyx_v_exc = __pyx_t_7; /*try:*/ { - /* "hunter/_event.pyx":222 + /* "hunter/_event.pyx":180 * self._source = getline(self.filename, self.lineno) * except Exception as exc: * self._source = "??? NO SOURCE: {!r}".format(exc) # <<<<<<<<<<<<<< * * return self._source */ - __Pyx_TraceLine(222,0,__PYX_ERR(0, 222, __pyx_L15_error)) - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_NO_SOURCE_r, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 222, __pyx_L15_error) + __Pyx_TraceLine(180,0,__PYX_ERR(0, 180, __pyx_L15_error)) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_NO_SOURCE_r, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 180, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { @@ -4531,7 +4531,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob } __pyx_t_9 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_10, __pyx_v_exc) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_exc); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 222, __pyx_L15_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 180, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GIVEREF(__pyx_t_9); @@ -4541,14 +4541,14 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __pyx_t_9 = 0; } - /* "hunter/_event.pyx":221 + /* "hunter/_event.pyx":179 * try: * self._source = getline(self.filename, self.lineno) * except Exception as exc: # <<<<<<<<<<<<<< * self._source = "??? NO SOURCE: {!r}".format(exc) * */ - __Pyx_TraceLine(221,0,__PYX_ERR(0, 221, __pyx_L6_except_error)) + __Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L6_except_error)) /*finally:*/ { /*normal exit:*/{ __Pyx_DECREF(__pyx_v_exc); @@ -4600,8 +4600,8 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "hunter/_event.pyx":219 - * """ + /* "hunter/_event.pyx":177 + * def __get__(self): * if self._source is UNSET: * try: # <<<<<<<<<<<<<< * self._source = getline(self.filename, self.lineno) @@ -4620,34 +4620,34 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob __pyx_L9_try_end:; } - /* "hunter/_event.pyx":218 - * Fast but sometimes incomplete. - * """ + /* "hunter/_event.pyx":176 + * property source: + * def __get__(self): * if self._source is UNSET: # <<<<<<<<<<<<<< * try: * self._source = getline(self.filename, self.lineno) */ } - /* "hunter/_event.pyx":224 + /* "hunter/_event.pyx":182 * self._source = "??? NO SOURCE: {!r}".format(exc) * * return self._source # <<<<<<<<<<<<<< * * property _raw_fullsource: */ - __Pyx_TraceLine(224,0,__PYX_ERR(0, 224, __pyx_L1_error)) + __Pyx_TraceLine(182,0,__PYX_ERR(0, 182, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->_source); __pyx_r = __pyx_v_self->_source; goto __pyx_L0; - /* "hunter/_event.pyx":212 + /* "hunter/_event.pyx":175 * * property source: * def __get__(self): # <<<<<<<<<<<<<< - * """ - * A string with the sourcecode for the current line (from ``linecache`` - failures are ignored). + * if self._source is UNSET: + * try: */ /* function exit code */ @@ -4668,7 +4668,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6source___get__(struct __pyx_ob return __pyx_r; } -/* "hunter/_event.pyx":227 +/* "hunter/_event.pyx":185 * * property _raw_fullsource: * def __get__(self): # <<<<<<<<<<<<<< @@ -4719,55 +4719,55 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc PyObject *(*__pyx_t_20)(PyObject *); PyObject *(*__pyx_t_21)(PyObject *); __Pyx_RefNannySetupContext("__get__", 0); - __Pyx_TraceCall("__get__", __pyx_f[0], 227, 0, __PYX_ERR(0, 227, __pyx_L1_error)); + __Pyx_TraceCall("__get__", __pyx_f[0], 185, 0, __PYX_ERR(0, 185, __pyx_L1_error)); - /* "hunter/_event.pyx":230 + /* "hunter/_event.pyx":188 * cdef list lines * * if self.kind == 'call' and self.code.co_name != "": # <<<<<<<<<<<<<< * lines = [] * try: */ - __Pyx_TraceLine(230,0,__PYX_ERR(0, 230, __pyx_L1_error)) - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->kind, __pyx_n_u_call, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 230, __pyx_L1_error) + __Pyx_TraceLine(188,0,__PYX_ERR(0, 188, __pyx_L1_error)) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->kind, __pyx_n_u_call, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 188, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_code); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_code); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_co_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_co_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_module_2, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_module_2, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "hunter/_event.pyx":231 + /* "hunter/_event.pyx":189 * * if self.kind == 'call' and self.code.co_name != "": * lines = [] # <<<<<<<<<<<<<< * try: * for _, token, _, _, line in generate_tokens(partial( */ - __Pyx_TraceLine(231,0,__PYX_ERR(0, 231, __pyx_L1_error)) - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 231, __pyx_L1_error) + __Pyx_TraceLine(189,0,__PYX_ERR(0, 189, __pyx_L1_error)) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_lines = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "hunter/_event.pyx":232 + /* "hunter/_event.pyx":190 * if self.kind == 'call' and self.code.co_name != "": * lines = [] * try: # <<<<<<<<<<<<<< * for _, token, _, _, line in generate_tokens(partial( * next, */ - __Pyx_TraceLine(232,0,__PYX_ERR(0, 232, __pyx_L1_error)) + __Pyx_TraceLine(190,0,__PYX_ERR(0, 190, __pyx_L1_error)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign @@ -4777,45 +4777,45 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "hunter/_event.pyx":233 + /* "hunter/_event.pyx":191 * lines = [] * try: * for _, token, _, _, line in generate_tokens(partial( # <<<<<<<<<<<<<< * next, * yield_lines(self.filename, self.lineno - 1, lines) */ - __Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L6_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_generate_tokens); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 233, __pyx_L6_error) + __Pyx_TraceLine(191,0,__PYX_ERR(0, 191, __pyx_L6_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_generate_tokens); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_partial); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 233, __pyx_L6_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_partial); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_10); - /* "hunter/_event.pyx":234 + /* "hunter/_event.pyx":192 * try: * for _, token, _, _, line in generate_tokens(partial( * next, # <<<<<<<<<<<<<< * yield_lines(self.filename, self.lineno - 1, lines) * )): */ - __Pyx_TraceLine(234,0,__PYX_ERR(0, 234, __pyx_L6_error)) - __pyx_t_11 = __Pyx_GetBuiltinName(__pyx_n_s_next); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 234, __pyx_L6_error) + __Pyx_TraceLine(192,0,__PYX_ERR(0, 192, __pyx_L6_error)) + __pyx_t_11 = __Pyx_GetBuiltinName(__pyx_n_s_next); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 192, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_11); - /* "hunter/_event.pyx":235 + /* "hunter/_event.pyx":193 * for _, token, _, _, line in generate_tokens(partial( * next, * yield_lines(self.filename, self.lineno - 1, lines) # <<<<<<<<<<<<<< * )): * if token in ("def", "class", "lambda"): */ - __Pyx_TraceLine(235,0,__PYX_ERR(0, 235, __pyx_L6_error)) - __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_yield_lines); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 235, __pyx_L6_error) + __Pyx_TraceLine(193,0,__PYX_ERR(0, 193, __pyx_L6_error)) + __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_yield_lines); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_13); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_14); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_15); - __pyx_t_16 = __Pyx_PyInt_SubtractObjC(__pyx_t_15, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_16 = __Pyx_PyInt_SubtractObjC(__pyx_t_15, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_15 = NULL; @@ -4833,7 +4833,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_13)) { PyObject *__pyx_temp[4] = {__pyx_t_15, __pyx_t_14, __pyx_t_16, __pyx_v_lines}; - __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_17, 3+__pyx_t_17); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_17, 3+__pyx_t_17); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -4843,7 +4843,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_13)) { PyObject *__pyx_temp[4] = {__pyx_t_15, __pyx_t_14, __pyx_t_16, __pyx_v_lines}; - __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_17, 3+__pyx_t_17); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_13, __pyx_temp+1-__pyx_t_17, 3+__pyx_t_17); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; @@ -4851,7 +4851,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc } else #endif { - __pyx_t_18 = PyTuple_New(3+__pyx_t_17); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_18 = PyTuple_New(3+__pyx_t_17); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_18); if (__pyx_t_15) { __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_15); __pyx_t_15 = NULL; @@ -4865,7 +4865,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc PyTuple_SET_ITEM(__pyx_t_18, 2+__pyx_t_17, __pyx_v_lines); __pyx_t_14 = 0; __pyx_t_16 = 0; - __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 235, __pyx_L6_error) + __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_13, __pyx_t_18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 193, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } @@ -4885,7 +4885,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_t_11, __pyx_t_12}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -4895,7 +4895,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_t_11, __pyx_t_12}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; @@ -4903,7 +4903,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc } else #endif { - __pyx_t_18 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_18 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_18); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -4914,7 +4914,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc PyTuple_SET_ITEM(__pyx_t_18, 1+__pyx_t_17, __pyx_t_12); __pyx_t_11 = 0; __pyx_t_12 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_18, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_18, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } @@ -4932,25 +4932,25 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __pyx_t_5 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_10, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L6_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_event.pyx":233 + /* "hunter/_event.pyx":191 * lines = [] * try: * for _, token, _, _, line in generate_tokens(partial( # <<<<<<<<<<<<<< * next, * yield_lines(self.filename, self.lineno - 1, lines) */ - __Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L6_error)) + __Pyx_TraceLine(191,0,__PYX_ERR(0, 191, __pyx_L6_error)) if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) { __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_19 = 0; __pyx_t_20 = NULL; } else { - __pyx_t_19 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_19 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_20 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_20 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 191, __pyx_L6_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; for (;;) { @@ -4958,17 +4958,17 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc if (likely(PyList_CheckExact(__pyx_t_4))) { if (__pyx_t_19 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_19); __Pyx_INCREF(__pyx_t_5); __pyx_t_19++; if (unlikely(0 < 0)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_19); __Pyx_INCREF(__pyx_t_5); __pyx_t_19++; if (unlikely(0 < 0)) __PYX_ERR(0, 191, __pyx_L6_error) #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_19); __pyx_t_19++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_19); __pyx_t_19++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { if (__pyx_t_19 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_19); __Pyx_INCREF(__pyx_t_5); __pyx_t_19++; if (unlikely(0 < 0)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_19); __Pyx_INCREF(__pyx_t_5); __pyx_t_19++; if (unlikely(0 < 0)) __PYX_ERR(0, 191, __pyx_L6_error) #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_19); __pyx_t_19++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_19); __pyx_t_19++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); #endif } @@ -4978,7 +4978,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(0, 233, __pyx_L6_error) + else __PYX_ERR(0, 191, __pyx_L6_error) } break; } @@ -4990,7 +4990,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc if (unlikely(size != 5)) { if (size > 5) __Pyx_RaiseTooManyValuesError(5); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(0, 233, __pyx_L6_error) + __PYX_ERR(0, 191, __pyx_L6_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -5016,7 +5016,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc Py_ssize_t i; PyObject** temps[5] = {&__pyx_t_9,&__pyx_t_10,&__pyx_t_18,&__pyx_t_12,&__pyx_t_11}; for (i=0; i < 5; i++) { - PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 233, __pyx_L6_error) + PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(item); *(temps[i]) = item; } @@ -5026,7 +5026,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc } else { Py_ssize_t index = -1; PyObject** temps[5] = {&__pyx_t_9,&__pyx_t_10,&__pyx_t_18,&__pyx_t_12,&__pyx_t_11}; - __pyx_t_13 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 233, __pyx_L6_error) + __pyx_t_13 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 191, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_21 = Py_TYPE(__pyx_t_13)->tp_iternext; @@ -5035,7 +5035,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __Pyx_GOTREF(item); *(temps[index]) = item; } - if (__Pyx_IternextUnpackEndCheck(__pyx_t_21(__pyx_t_13), 5) < 0) __PYX_ERR(0, 233, __pyx_L6_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_21(__pyx_t_13), 5) < 0) __PYX_ERR(0, 191, __pyx_L6_error) __pyx_t_21 = NULL; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L15_unpacking_done; @@ -5043,7 +5043,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __pyx_t_21 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(0, 233, __pyx_L6_error) + __PYX_ERR(0, 191, __pyx_L6_error) __pyx_L15_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v__, __pyx_t_9); @@ -5057,52 +5057,52 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_11); __pyx_t_11 = 0; - /* "hunter/_event.pyx":237 + /* "hunter/_event.pyx":195 * yield_lines(self.filename, self.lineno - 1, lines) * )): * if token in ("def", "class", "lambda"): # <<<<<<<<<<<<<< * return ''.join(lines) * except TokenError: */ - __Pyx_TraceLine(237,0,__PYX_ERR(0, 237, __pyx_L6_error)) + __Pyx_TraceLine(195,0,__PYX_ERR(0, 195, __pyx_L6_error)) __Pyx_INCREF(__pyx_v_token); __pyx_t_5 = __pyx_v_token; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_def, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 237, __pyx_L6_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_def, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 195, __pyx_L6_error) if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L17_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_class, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 237, __pyx_L6_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_class, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 195, __pyx_L6_error) if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L17_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_lambda, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 237, __pyx_L6_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_lambda, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 195, __pyx_L6_error) __pyx_t_1 = __pyx_t_3; __pyx_L17_bool_binop_done:; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "hunter/_event.pyx":238 + /* "hunter/_event.pyx":196 * )): * if token in ("def", "class", "lambda"): * return ''.join(lines) # <<<<<<<<<<<<<< * except TokenError: * pass */ - __Pyx_TraceLine(238,0,__PYX_ERR(0, 238, __pyx_L6_error)) + __Pyx_TraceLine(196,0,__PYX_ERR(0, 196, __pyx_L6_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = PyUnicode_Join(__pyx_kp_u_, __pyx_v_lines); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 238, __pyx_L6_error) + __pyx_t_5 = PyUnicode_Join(__pyx_kp_u_, __pyx_v_lines); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 196, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; goto __pyx_L10_try_return; - /* "hunter/_event.pyx":237 + /* "hunter/_event.pyx":195 * yield_lines(self.filename, self.lineno - 1, lines) * )): * if token in ("def", "class", "lambda"): # <<<<<<<<<<<<<< @@ -5111,18 +5111,18 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc */ } - /* "hunter/_event.pyx":233 + /* "hunter/_event.pyx":191 * lines = [] * try: * for _, token, _, _, line in generate_tokens(partial( # <<<<<<<<<<<<<< * next, * yield_lines(self.filename, self.lineno - 1, lines) */ - __Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L6_error)) + __Pyx_TraceLine(191,0,__PYX_ERR(0, 191, __pyx_L6_error)) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_event.pyx":232 + /* "hunter/_event.pyx":190 * if self.kind == 'call' and self.code.co_name != "": * lines = [] * try: # <<<<<<<<<<<<<< @@ -5147,16 +5147,16 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_event.pyx":239 + /* "hunter/_event.pyx":197 * if token in ("def", "class", "lambda"): * return ''.join(lines) * except TokenError: # <<<<<<<<<<<<<< * pass * */ - __Pyx_TraceLine(239,0,__PYX_ERR(0, 239, __pyx_L8_except_error)) + __Pyx_TraceLine(197,0,__PYX_ERR(0, 197, __pyx_L8_except_error)) __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_11); - __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_TokenError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 239, __pyx_L8_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_TokenError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 197, __pyx_L8_except_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_17 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_12); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; @@ -5169,7 +5169,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc goto __pyx_L8_except_error; __pyx_L8_except_error:; - /* "hunter/_event.pyx":232 + /* "hunter/_event.pyx":190 * if self.kind == 'call' and self.code.co_name != "": * lines = [] * try: # <<<<<<<<<<<<<< @@ -5195,7 +5195,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __pyx_L11_try_end:; } - /* "hunter/_event.pyx":230 + /* "hunter/_event.pyx":188 * cdef list lines * * if self.kind == 'call' and self.code.co_name != "": # <<<<<<<<<<<<<< @@ -5204,20 +5204,20 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc */ } - /* "hunter/_event.pyx":242 + /* "hunter/_event.pyx":200 * pass * * return getline(self.filename, self.lineno) # <<<<<<<<<<<<<< * * def __getitem__(self, item): */ - __Pyx_TraceLine(242,0,__PYX_ERR(0, 242, __pyx_L1_error)) + __Pyx_TraceLine(200,0,__PYX_ERR(0, 200, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_getline); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 242, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_getline); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filename); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lineno); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_18 = NULL; __pyx_t_17 = 0; @@ -5234,7 +5234,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_18, __pyx_t_4, __pyx_t_12}; - __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0; __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -5244,7 +5244,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_18, __pyx_t_4, __pyx_t_12}; - __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_17, 2+__pyx_t_17); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0; __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -5252,7 +5252,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc } else #endif { - __pyx_t_10 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(2+__pyx_t_17); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_18) { __Pyx_GIVEREF(__pyx_t_18); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_18); __pyx_t_18 = NULL; @@ -5263,7 +5263,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_17, __pyx_t_12); __pyx_t_4 = 0; __pyx_t_12 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 242, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } @@ -5272,7 +5272,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc __pyx_t_11 = 0; goto __pyx_L0; - /* "hunter/_event.pyx":227 + /* "hunter/_event.pyx":185 * * property _raw_fullsource: * def __get__(self): # <<<<<<<<<<<<<< @@ -5306,7 +5306,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_15_raw_fullsource___get__(struc return __pyx_r; } -/* "hunter/_event.pyx":244 +/* "hunter/_event.pyx":202 * return getline(self.filename, self.lineno) * * def __getitem__(self, item): # <<<<<<<<<<<<<< @@ -5333,24 +5333,24 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_2__getitem__(struct __pyx_obj_6 __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__getitem__", 0); - __Pyx_TraceCall("__getitem__", __pyx_f[0], 244, 0, __PYX_ERR(0, 244, __pyx_L1_error)); + __Pyx_TraceCall("__getitem__", __pyx_f[0], 202, 0, __PYX_ERR(0, 202, __pyx_L1_error)); - /* "hunter/_event.pyx":245 + /* "hunter/_event.pyx":203 * * def __getitem__(self, item): * return getattr(self, item) # <<<<<<<<<<<<<< * * */ - __Pyx_TraceLine(245,0,__PYX_ERR(0, 245, __pyx_L1_error)) + __Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetAttr(((PyObject *)__pyx_v_self), __pyx_v_item); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetAttr(((PyObject *)__pyx_v_self), __pyx_v_item); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "hunter/_event.pyx":244 + /* "hunter/_event.pyx":202 * return getline(self.filename, self.lineno) * * def __getitem__(self, item): # <<<<<<<<<<<<<< @@ -5752,7 +5752,7 @@ static PyObject *__pyx_pf_6hunter_6_event_5Event_6__setstate_cython__(CYTHON_UNU } static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ -/* "hunter/_event.pyx":248 +/* "hunter/_event.pyx":206 * * * def yield_lines(filename, start, list collector, # <<<<<<<<<<<<<< @@ -5799,13 +5799,13 @@ static PyObject *__pyx_pw_6hunter_6_event_1yield_lines(PyObject *__pyx_self, PyO case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_start)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, 1); __PYX_ERR(0, 248, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, 1); __PYX_ERR(0, 206, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_collector)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, 2); __PYX_ERR(0, 248, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, 2); __PYX_ERR(0, 206, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: @@ -5815,7 +5815,7 @@ static PyObject *__pyx_pw_6hunter_6_event_1yield_lines(PyObject *__pyx_self, PyO } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "yield_lines") < 0)) __PYX_ERR(0, 248, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "yield_lines") < 0)) __PYX_ERR(0, 206, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -5835,13 +5835,13 @@ static PyObject *__pyx_pw_6hunter_6_event_1yield_lines(PyObject *__pyx_self, PyO } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 248, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("yield_lines", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 206, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("hunter._event.yield_lines", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_collector), (&PyList_Type), 1, "collector", 1))) __PYX_ERR(0, 248, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_collector), (&PyList_Type), 1, "collector", 1))) __PYX_ERR(0, 206, __pyx_L1_error) __pyx_r = __pyx_pf_6hunter_6_event_yield_lines(__pyx_self, __pyx_v_filename, __pyx_v_start, __pyx_v_collector, __pyx_v_limit); /* function exit code */ @@ -5862,7 +5862,7 @@ static PyObject *__pyx_pf_6hunter_6_event_yield_lines(CYTHON_UNUSED PyObject *__ if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_6hunter_6_event___pyx_scope_struct__yield_lines *)Py_None); __Pyx_INCREF(Py_None); - __PYX_ERR(0, 248, __pyx_L1_error) + __PYX_ERR(0, 206, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } @@ -5879,7 +5879,7 @@ static PyObject *__pyx_pf_6hunter_6_event_yield_lines(CYTHON_UNUSED PyObject *__ __Pyx_INCREF(__pyx_cur_scope->__pyx_v_limit); __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_limit); { - __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6hunter_6_event_2generator, __pyx_codeobj__10, (PyObject *) __pyx_cur_scope, __pyx_n_s_yield_lines, __pyx_n_s_yield_lines, __pyx_n_s_hunter__event); if (unlikely(!gen)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6hunter_6_event_2generator, __pyx_codeobj__10, (PyObject *) __pyx_cur_scope, __pyx_n_s_yield_lines, __pyx_n_s_yield_lines, __pyx_n_s_hunter__event); if (unlikely(!gen)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; @@ -5913,7 +5913,7 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("yield_lines", 0); __Pyx_TraceFrameInit(__pyx_codeobj__10) - __Pyx_TraceCall("yield_lines", __pyx_f[0], 248, 0, __PYX_ERR(0, 248, __pyx_L1_error)); + __Pyx_TraceCall("yield_lines", __pyx_f[0], 206, 0, __PYX_ERR(0, 206, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L7_resume_from_yield; @@ -5923,39 +5923,39 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py return NULL; } __pyx_L3_first_run:; - if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 248, __pyx_L1_error) + if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 206, __pyx_L1_error) - /* "hunter/_event.pyx":250 + /* "hunter/_event.pyx":208 * def yield_lines(filename, start, list collector, * limit=10): * dedent = None # <<<<<<<<<<<<<< * amount = 0 * for line in getlines(filename)[start:start + limit]: */ - __Pyx_TraceLine(250,0,__PYX_ERR(0, 250, __pyx_L1_error)) + __Pyx_TraceLine(208,0,__PYX_ERR(0, 208, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __pyx_cur_scope->__pyx_v_dedent = Py_None; - /* "hunter/_event.pyx":251 + /* "hunter/_event.pyx":209 * limit=10): * dedent = None * amount = 0 # <<<<<<<<<<<<<< * for line in getlines(filename)[start:start + limit]: * if dedent is None: */ - __Pyx_TraceLine(251,0,__PYX_ERR(0, 251, __pyx_L1_error)) + __Pyx_TraceLine(209,0,__PYX_ERR(0, 209, __pyx_L1_error)) __pyx_cur_scope->__pyx_v_amount = 0; - /* "hunter/_event.pyx":252 + /* "hunter/_event.pyx":210 * dedent = None * amount = 0 * for line in getlines(filename)[start:start + limit]: # <<<<<<<<<<<<<< * if dedent is None: * dedent = LEADING_WHITESPACE_RE.findall(line) */ - __Pyx_TraceLine(252,0,__PYX_ERR(0, 252, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_getlines); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error) + __Pyx_TraceLine(210,0,__PYX_ERR(0, 210, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_getlines); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -5969,12 +5969,12 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_cur_scope->__pyx_v_filename) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_cur_scope->__pyx_v_filename); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyNumber_Add(__pyx_cur_scope->__pyx_v_start, __pyx_cur_scope->__pyx_v_limit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_2 = PyNumber_Add(__pyx_cur_scope->__pyx_v_start, __pyx_cur_scope->__pyx_v_limit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 0, &__pyx_cur_scope->__pyx_v_start, &__pyx_t_2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 0, &__pyx_cur_scope->__pyx_v_start, &__pyx_t_2, NULL, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -5982,9 +5982,9 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; __pyx_t_5 = NULL; } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 210, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -5992,17 +5992,17 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py if (likely(PyList_CheckExact(__pyx_t_2))) { if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 210, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 210, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -6012,7 +6012,7 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(0, 252, __pyx_L1_error) + else __PYX_ERR(0, 210, __pyx_L1_error) } break; } @@ -6023,29 +6023,29 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - /* "hunter/_event.pyx":253 + /* "hunter/_event.pyx":211 * amount = 0 * for line in getlines(filename)[start:start + limit]: * if dedent is None: # <<<<<<<<<<<<<< * dedent = LEADING_WHITESPACE_RE.findall(line) * dedent = dedent[0] if dedent else "" */ - __Pyx_TraceLine(253,0,__PYX_ERR(0, 253, __pyx_L1_error)) + __Pyx_TraceLine(211,0,__PYX_ERR(0, 211, __pyx_L1_error)) __pyx_t_6 = (__pyx_cur_scope->__pyx_v_dedent == Py_None); __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "hunter/_event.pyx":254 + /* "hunter/_event.pyx":212 * for line in getlines(filename)[start:start + limit]: * if dedent is None: * dedent = LEADING_WHITESPACE_RE.findall(line) # <<<<<<<<<<<<<< * dedent = dedent[0] if dedent else "" * amount = len(dedent) */ - __Pyx_TraceLine(254,0,__PYX_ERR(0, 254, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LEADING_WHITESPACE_RE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_TraceLine(212,0,__PYX_ERR(0, 212, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LEADING_WHITESPACE_RE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_findall); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 254, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_findall); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = NULL; @@ -6060,7 +6060,7 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py } __pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_1, __pyx_cur_scope->__pyx_v_line) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_cur_scope->__pyx_v_line); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_cur_scope->__pyx_v_dedent); @@ -6068,17 +6068,17 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - /* "hunter/_event.pyx":255 + /* "hunter/_event.pyx":213 * if dedent is None: * dedent = LEADING_WHITESPACE_RE.findall(line) * dedent = dedent[0] if dedent else "" # <<<<<<<<<<<<<< * amount = len(dedent) * elif not line.startswith(dedent): */ - __Pyx_TraceLine(255,0,__PYX_ERR(0, 255, __pyx_L1_error)) - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_dedent); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 255, __pyx_L1_error) + __Pyx_TraceLine(213,0,__PYX_ERR(0, 213, __pyx_L1_error)) + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_cur_scope->__pyx_v_dedent); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 213, __pyx_L1_error) if (__pyx_t_7) { - __pyx_t_8 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_dedent, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_dedent, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_3 = __pyx_t_8; __pyx_t_8 = 0; @@ -6091,18 +6091,18 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - /* "hunter/_event.pyx":256 + /* "hunter/_event.pyx":214 * dedent = LEADING_WHITESPACE_RE.findall(line) * dedent = dedent[0] if dedent else "" * amount = len(dedent) # <<<<<<<<<<<<<< * elif not line.startswith(dedent): * break */ - __Pyx_TraceLine(256,0,__PYX_ERR(0, 256, __pyx_L1_error)) - __pyx_t_9 = PyObject_Length(__pyx_cur_scope->__pyx_v_dedent); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 256, __pyx_L1_error) + __Pyx_TraceLine(214,0,__PYX_ERR(0, 214, __pyx_L1_error)) + __pyx_t_9 = PyObject_Length(__pyx_cur_scope->__pyx_v_dedent); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 214, __pyx_L1_error) __pyx_cur_scope->__pyx_v_amount = __pyx_t_9; - /* "hunter/_event.pyx":253 + /* "hunter/_event.pyx":211 * amount = 0 * for line in getlines(filename)[start:start + limit]: * if dedent is None: # <<<<<<<<<<<<<< @@ -6112,15 +6112,15 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py goto __pyx_L6; } - /* "hunter/_event.pyx":257 + /* "hunter/_event.pyx":215 * dedent = dedent[0] if dedent else "" * amount = len(dedent) * elif not line.startswith(dedent): # <<<<<<<<<<<<<< * break * collector.append(line) */ - __Pyx_TraceLine(257,0,__PYX_ERR(0, 257, __pyx_L1_error)) - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_line, __pyx_n_s_startswith); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 257, __pyx_L1_error) + __Pyx_TraceLine(215,0,__PYX_ERR(0, 215, __pyx_L1_error)) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_line, __pyx_n_s_startswith); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { @@ -6134,25 +6134,25 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py } __pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_1, __pyx_cur_scope->__pyx_v_dedent) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_cur_scope->__pyx_v_dedent); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 257, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 257, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = ((!__pyx_t_7) != 0); if (__pyx_t_6) { - /* "hunter/_event.pyx":258 + /* "hunter/_event.pyx":216 * amount = len(dedent) * elif not line.startswith(dedent): * break # <<<<<<<<<<<<<< * collector.append(line) * yield line[amount:] */ - __Pyx_TraceLine(258,0,__PYX_ERR(0, 258, __pyx_L1_error)) + __Pyx_TraceLine(216,0,__PYX_ERR(0, 216, __pyx_L1_error)) goto __pyx_L5_break; - /* "hunter/_event.pyx":257 + /* "hunter/_event.pyx":215 * dedent = dedent[0] if dedent else "" * amount = len(dedent) * elif not line.startswith(dedent): # <<<<<<<<<<<<<< @@ -6162,26 +6162,26 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py } __pyx_L6:; - /* "hunter/_event.pyx":259 + /* "hunter/_event.pyx":217 * elif not line.startswith(dedent): * break * collector.append(line) # <<<<<<<<<<<<<< * yield line[amount:] */ - __Pyx_TraceLine(259,0,__PYX_ERR(0, 259, __pyx_L1_error)) + __Pyx_TraceLine(217,0,__PYX_ERR(0, 217, __pyx_L1_error)) if (unlikely(__pyx_cur_scope->__pyx_v_collector == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append"); - __PYX_ERR(0, 259, __pyx_L1_error) + __PYX_ERR(0, 217, __pyx_L1_error) } - __pyx_t_10 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_collector, __pyx_cur_scope->__pyx_v_line); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 259, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_collector, __pyx_cur_scope->__pyx_v_line); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 217, __pyx_L1_error) - /* "hunter/_event.pyx":260 + /* "hunter/_event.pyx":218 * break * collector.append(line) * yield line[amount:] # <<<<<<<<<<<<<< */ - __Pyx_TraceLine(260,0,__PYX_ERR(0, 260, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_line, __pyx_cur_scope->__pyx_v_amount, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) + __Pyx_TraceLine(218,0,__PYX_ERR(0, 218, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_cur_scope->__pyx_v_line, __pyx_cur_scope->__pyx_v_amount, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; @@ -6202,22 +6202,22 @@ static PyObject *__pyx_gb_6hunter_6_event_2generator(__pyx_CoroutineObject *__py __Pyx_XGOTREF(__pyx_t_2); __pyx_t_4 = __pyx_cur_scope->__pyx_t_1; __pyx_t_5 = __pyx_cur_scope->__pyx_t_2; - if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 260, __pyx_L1_error) + if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 218, __pyx_L1_error) - /* "hunter/_event.pyx":252 + /* "hunter/_event.pyx":210 * dedent = None * amount = 0 * for line in getlines(filename)[start:start + limit]: # <<<<<<<<<<<<<< * if dedent is None: * dedent = LEADING_WHITESPACE_RE.findall(line) */ - __Pyx_TraceLine(252,0,__PYX_ERR(0, 252, __pyx_L1_error)) + __Pyx_TraceLine(210,0,__PYX_ERR(0, 210, __pyx_L1_error)) } __pyx_L5_break:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); - /* "hunter/_event.pyx":248 + /* "hunter/_event.pyx":206 * * * def yield_lines(filename, start, list collector, # <<<<<<<<<<<<<< @@ -6477,7 +6477,7 @@ static struct PyGetSetDef __pyx_getsets_6hunter_6_event_Event[] = { {(char *)"locals", __pyx_getprop_6hunter_6_event_5Event_locals, 0, (char *)0, 0}, {(char *)"globals", __pyx_getprop_6hunter_6_event_5Event_globals, 0, (char *)0, 0}, {(char *)"function", __pyx_getprop_6hunter_6_event_5Event_function, 0, (char *)0, 0}, - {(char *)"module", __pyx_getprop_6hunter_6_event_5Event_module, 0, (char *)"\n A string with module name (eg: ``\"foo.bar\"``).\n ", 0}, + {(char *)"module", __pyx_getprop_6hunter_6_event_5Event_module, 0, (char *)0, 0}, {(char *)"filename", __pyx_getprop_6hunter_6_event_5Event_filename, 0, (char *)0, 0}, {(char *)"lineno", __pyx_getprop_6hunter_6_event_5Event_lineno, 0, (char *)0, 0}, {(char *)"code", __pyx_getprop_6hunter_6_event_5Event_code, 0, (char *)0, 0}, @@ -6539,7 +6539,7 @@ static PyTypeObject __pyx_type_6hunter_6_event_Event = { 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ - "\n Event wrapper for ``frame, kind, arg`` (the arguments the settrace function gets). This objects is passed to your\n custom functions or predicates.\n\n Provides few convenience properties.\n\n .. warning::\n\n **Users do not instantiate this directly.**\n ", /*tp_doc*/ + "\n A wrapper object for Frame objects. Instances of this are passed to your custom functions or predicates.\n\n Provides few convenience properties.\n\n Args:\n frame (Frame):\n kind (str):\n arg:\n tracer (:obj:`hunter.Tracer`):\n ", /*tp_doc*/ __pyx_tp_traverse_6hunter_6_event_Event, /*tp_traverse*/ __pyx_tp_clear_6hunter_6_event_Event, /*tp_clear*/ 0, /*tp_richcompare*/ @@ -6845,69 +6845,69 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); - /* "hunter/_event.pyx":134 + /* "hunter/_event.pyx":114 * def __get__(self): * if self._module is UNSET: * module = self.frame.f_globals.get('__name__', '') # <<<<<<<<<<<<<< * if module is None: * module = '' */ - __pyx_tuple__2 = PyTuple_Pack(2, __pyx_n_u_name_2, __pyx_kp_u_); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 134, __pyx_L1_error) + __pyx_tuple__2 = PyTuple_Pack(2, __pyx_n_u_name_2, __pyx_kp_u_); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); - /* "hunter/_event.pyx":147 - * """ + /* "hunter/_event.pyx":124 + * def __get__(self): * if self._filename is UNSET: * filename = self.frame.f_globals.get('__file__', '') # <<<<<<<<<<<<<< * if filename is None: * filename = '' */ - __pyx_tuple__3 = PyTuple_Pack(2, __pyx_n_u_file, __pyx_kp_u_); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 147, __pyx_L1_error) + __pyx_tuple__3 = PyTuple_Pack(2, __pyx_n_u_file, __pyx_kp_u_); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); - /* "hunter/_event.pyx":150 + /* "hunter/_event.pyx":127 * if filename is None: * filename = '' * elif filename.endswith(('.pyc', '.pyo')): # <<<<<<<<<<<<<< * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): */ - __pyx_tuple__4 = PyTuple_Pack(2, __pyx_kp_u_pyc, __pyx_kp_u_pyo); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 150, __pyx_L1_error) + __pyx_tuple__4 = PyTuple_Pack(2, __pyx_kp_u_pyc, __pyx_kp_u_pyo); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); - /* "hunter/_event.pyx":151 + /* "hunter/_event.pyx":128 * filename = '' * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] # <<<<<<<<<<<<<< * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) */ - __pyx_slice__5 = PySlice_New(Py_None, __pyx_int_neg_1, Py_None); if (unlikely(!__pyx_slice__5)) __PYX_ERR(0, 151, __pyx_L1_error) + __pyx_slice__5 = PySlice_New(Py_None, __pyx_int_neg_1, Py_None); if (unlikely(!__pyx_slice__5)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__5); __Pyx_GIVEREF(__pyx_slice__5); - /* "hunter/_event.pyx":152 + /* "hunter/_event.pyx":129 * elif filename.endswith(('.pyc', '.pyo')): * filename = filename[:-1] * elif filename.endswith(('.so', '.pyd')): # <<<<<<<<<<<<<< * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): */ - __pyx_tuple__6 = PyTuple_Pack(2, __pyx_kp_u_so, __pyx_kp_u_pyd); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 152, __pyx_L1_error) + __pyx_tuple__6 = PyTuple_Pack(2, __pyx_kp_u_so, __pyx_kp_u_pyd); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); - /* "hunter/_event.pyx":154 + /* "hunter/_event.pyx":131 * elif filename.endswith(('.so', '.pyd')): * basename = CYTHON_SUFFIX_RE.sub('', filename) * for ext in ('.pyx', '.py'): # <<<<<<<<<<<<<< * cyfilename = basename + ext * if exists(cyfilename): */ - __pyx_tuple__7 = PyTuple_Pack(2, __pyx_kp_u_pyx, __pyx_kp_u_py); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 154, __pyx_L1_error) + __pyx_tuple__7 = PyTuple_Pack(2, __pyx_kp_u_pyx, __pyx_kp_u_py); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); @@ -6941,17 +6941,17 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); - /* "hunter/_event.pyx":248 + /* "hunter/_event.pyx":206 * * * def yield_lines(filename, start, list collector, # <<<<<<<<<<<<<< * limit=10): * dedent = None */ - __pyx_tuple__12 = PyTuple_Pack(7, __pyx_n_s_filename, __pyx_n_s_start, __pyx_n_s_collector, __pyx_n_s_limit, __pyx_n_s_dedent, __pyx_n_s_amount, __pyx_n_s_line); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_tuple__12 = PyTuple_Pack(7, __pyx_n_s_filename, __pyx_n_s_start, __pyx_n_s_collector, __pyx_n_s_limit, __pyx_n_s_dedent, __pyx_n_s_amount, __pyx_n_s_line); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); - __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_hunter__event_pyx, __pyx_n_s_yield_lines, 248, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 248, __pyx_L1_error) + __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(4, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_hunter__event_pyx, __pyx_n_s_yield_lines, 206, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -7018,7 +7018,7 @@ static int __Pyx_modinit_type_init_code(void) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Event, (PyObject *)&__pyx_type_6hunter_6_event_Event) < 0) __PYX_ERR(0, 34, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6hunter_6_event_Event) < 0) __PYX_ERR(0, 34, __pyx_L1_error) __pyx_ptype_6hunter_6_event_Event = &__pyx_type_6hunter_6_event_Event; - if (PyType_Ready(&__pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines) < 0) __PYX_ERR(0, 248, __pyx_L1_error) + if (PyType_Ready(&__pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines) < 0) __PYX_ERR(0, 206, __pyx_L1_error) __pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines.tp_print = 0; if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines.tp_dictoffset && __pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_6hunter_6_event___pyx_scope_struct__yield_lines.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; @@ -7791,17 +7791,17 @@ if (!__Pyx_RefNanny) { __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - /* "hunter/_event.pyx":248 + /* "hunter/_event.pyx":206 * * * def yield_lines(filename, start, list collector, # <<<<<<<<<<<<<< * limit=10): * dedent = None */ - __Pyx_TraceLine(248,0,__PYX_ERR(0, 248, __pyx_L1_error)) - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6hunter_6_event_1yield_lines, NULL, __pyx_n_s_hunter__event); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 248, __pyx_L1_error) + __Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L1_error)) + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6hunter_6_event_1yield_lines, NULL, __pyx_n_s_hunter__event); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_yield_lines, __pyx_t_2) < 0) __PYX_ERR(0, 248, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_yield_lines, __pyx_t_2) < 0) __PYX_ERR(0, 206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "hunter/_event.pyx":1 diff --git a/src/hunter/_tracer.c b/src/hunter/_tracer.c index 2092b58..4ab7a2a 100644 --- a/src/hunter/_tracer.c +++ b/src/hunter/_tracer.c @@ -2465,8 +2465,8 @@ static int __pyx_f_6hunter_7_tracer_trace_func(struct __pyx_obj_6hunter_7_tracer return __pyx_r; } -/* "hunter/_tracer.pyx":66 - * +/* "hunter/_tracer.pyx":65 + * Tracer object. * """ * def __cinit__(self, threading_support=None): # <<<<<<<<<<<<<< * self.handler = None @@ -2502,7 +2502,7 @@ static int __pyx_pw_6hunter_7_tracer_6Tracer_1__cinit__(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 66, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 65, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -2516,7 +2516,7 @@ static int __pyx_pw_6hunter_7_tracer_6Tracer_1__cinit__(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 66, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 65, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("hunter._tracer.Tracer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -2534,96 +2534,96 @@ static int __pyx_pf_6hunter_7_tracer_6Tracer___cinit__(struct __pyx_obj_6hunter_ __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); - __Pyx_TraceCall("__cinit__", __pyx_f[0], 66, 0, __PYX_ERR(0, 66, __pyx_L1_error)); + __Pyx_TraceCall("__cinit__", __pyx_f[0], 65, 0, __PYX_ERR(0, 65, __pyx_L1_error)); - /* "hunter/_tracer.pyx":67 + /* "hunter/_tracer.pyx":66 * """ * def __cinit__(self, threading_support=None): * self.handler = None # <<<<<<<<<<<<<< * self.previous = None * self._previousfunc = NULL */ - __Pyx_TraceLine(67,0,__PYX_ERR(0, 67, __pyx_L1_error)) + __Pyx_TraceLine(66,0,__PYX_ERR(0, 66, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->handler); __Pyx_DECREF(__pyx_v_self->handler); __pyx_v_self->handler = Py_None; - /* "hunter/_tracer.pyx":68 + /* "hunter/_tracer.pyx":67 * def __cinit__(self, threading_support=None): * self.handler = None * self.previous = None # <<<<<<<<<<<<<< * self._previousfunc = NULL * self._threading_previous = None */ - __Pyx_TraceLine(68,0,__PYX_ERR(0, 68, __pyx_L1_error)) + __Pyx_TraceLine(67,0,__PYX_ERR(0, 67, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->previous); __Pyx_DECREF(__pyx_v_self->previous); __pyx_v_self->previous = Py_None; - /* "hunter/_tracer.pyx":69 + /* "hunter/_tracer.pyx":68 * self.handler = None * self.previous = None * self._previousfunc = NULL # <<<<<<<<<<<<<< * self._threading_previous = None * self.threading_support = threading_support */ - __Pyx_TraceLine(69,0,__PYX_ERR(0, 69, __pyx_L1_error)) + __Pyx_TraceLine(68,0,__PYX_ERR(0, 68, __pyx_L1_error)) __pyx_v_self->_previousfunc = NULL; - /* "hunter/_tracer.pyx":70 + /* "hunter/_tracer.pyx":69 * self.previous = None * self._previousfunc = NULL * self._threading_previous = None # <<<<<<<<<<<<<< * self.threading_support = threading_support * self.depth = 0 */ - __Pyx_TraceLine(70,0,__PYX_ERR(0, 70, __pyx_L1_error)) + __Pyx_TraceLine(69,0,__PYX_ERR(0, 69, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_threading_previous); __Pyx_DECREF(__pyx_v_self->_threading_previous); __pyx_v_self->_threading_previous = Py_None; - /* "hunter/_tracer.pyx":71 + /* "hunter/_tracer.pyx":70 * self._previousfunc = NULL * self._threading_previous = None * self.threading_support = threading_support # <<<<<<<<<<<<<< * self.depth = 0 * self.calls = 0 */ - __Pyx_TraceLine(71,0,__PYX_ERR(0, 71, __pyx_L1_error)) + __Pyx_TraceLine(70,0,__PYX_ERR(0, 70, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_threading_support); __Pyx_GIVEREF(__pyx_v_threading_support); __Pyx_GOTREF(__pyx_v_self->threading_support); __Pyx_DECREF(__pyx_v_self->threading_support); __pyx_v_self->threading_support = __pyx_v_threading_support; - /* "hunter/_tracer.pyx":72 + /* "hunter/_tracer.pyx":71 * self._threading_previous = None * self.threading_support = threading_support * self.depth = 0 # <<<<<<<<<<<<<< * self.calls = 0 * */ - __Pyx_TraceLine(72,0,__PYX_ERR(0, 72, __pyx_L1_error)) + __Pyx_TraceLine(71,0,__PYX_ERR(0, 71, __pyx_L1_error)) __pyx_v_self->depth = 0; - /* "hunter/_tracer.pyx":73 + /* "hunter/_tracer.pyx":72 * self.threading_support = threading_support * self.depth = 0 * self.calls = 0 # <<<<<<<<<<<<<< * * def __dealloc__(self): */ - __Pyx_TraceLine(73,0,__PYX_ERR(0, 73, __pyx_L1_error)) + __Pyx_TraceLine(72,0,__PYX_ERR(0, 72, __pyx_L1_error)) __pyx_v_self->calls = 0; - /* "hunter/_tracer.pyx":66 - * + /* "hunter/_tracer.pyx":65 + * Tracer object. * """ * def __cinit__(self, threading_support=None): # <<<<<<<<<<<<<< * self.handler = None @@ -2642,7 +2642,7 @@ static int __pyx_pf_6hunter_7_tracer_6Tracer___cinit__(struct __pyx_obj_6hunter_ return __pyx_r; } -/* "hunter/_tracer.pyx":75 +/* "hunter/_tracer.pyx":74 * self.calls = 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -2670,38 +2670,38 @@ static void __pyx_pf_6hunter_7_tracer_6Tracer_2__dealloc__(struct __pyx_obj_6hun PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("__dealloc__", 0); - __Pyx_TraceCall("__dealloc__", __pyx_f[0], 75, 0, __PYX_ERR(0, 75, __pyx_L1_error)); + __Pyx_TraceCall("__dealloc__", __pyx_f[0], 74, 0, __PYX_ERR(0, 74, __pyx_L1_error)); - /* "hunter/_tracer.pyx":76 + /* "hunter/_tracer.pyx":75 * * def __dealloc__(self): * cdef PyThreadState *state = PyThreadState_Get() # <<<<<<<<<<<<<< * if state.c_traceobj is self: * self.stop() */ - __Pyx_TraceLine(76,0,__PYX_ERR(0, 76, __pyx_L1_error)) + __Pyx_TraceLine(75,0,__PYX_ERR(0, 75, __pyx_L1_error)) __pyx_v_state = PyThreadState_Get(); - /* "hunter/_tracer.pyx":77 + /* "hunter/_tracer.pyx":76 * def __dealloc__(self): * cdef PyThreadState *state = PyThreadState_Get() * if state.c_traceobj is self: # <<<<<<<<<<<<<< * self.stop() * */ - __Pyx_TraceLine(77,0,__PYX_ERR(0, 77, __pyx_L1_error)) + __Pyx_TraceLine(76,0,__PYX_ERR(0, 76, __pyx_L1_error)) __pyx_t_1 = ((__pyx_v_state->c_traceobj == ((PyObject *)__pyx_v_self)) != 0); if (__pyx_t_1) { - /* "hunter/_tracer.pyx":78 + /* "hunter/_tracer.pyx":77 * cdef PyThreadState *state = PyThreadState_Get() * if state.c_traceobj is self: * self.stop() # <<<<<<<<<<<<<< * * def __repr__(self): */ - __Pyx_TraceLine(78,0,__PYX_ERR(0, 78, __pyx_L1_error)) - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_TraceLine(77,0,__PYX_ERR(0, 77, __pyx_L1_error)) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -2715,12 +2715,12 @@ static void __pyx_pf_6hunter_7_tracer_6Tracer_2__dealloc__(struct __pyx_obj_6hun } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "hunter/_tracer.pyx":77 + /* "hunter/_tracer.pyx":76 * def __dealloc__(self): * cdef PyThreadState *state = PyThreadState_Get() * if state.c_traceobj is self: # <<<<<<<<<<<<<< @@ -2729,7 +2729,7 @@ static void __pyx_pf_6hunter_7_tracer_6Tracer_2__dealloc__(struct __pyx_obj_6hun */ } - /* "hunter/_tracer.pyx":75 + /* "hunter/_tracer.pyx":74 * self.calls = 0 * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -2749,7 +2749,7 @@ static void __pyx_pf_6hunter_7_tracer_6Tracer_2__dealloc__(struct __pyx_obj_6hun __Pyx_RefNannyFinishContext(); } -/* "hunter/_tracer.pyx":80 +/* "hunter/_tracer.pyx":79 * self.stop() * * def __repr__(self): # <<<<<<<<<<<<<< @@ -2782,18 +2782,18 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h int __pyx_t_6; PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("__repr__", 0); - __Pyx_TraceCall("__repr__", __pyx_f[0], 80, 0, __PYX_ERR(0, 80, __pyx_L1_error)); + __Pyx_TraceCall("__repr__", __pyx_f[0], 79, 0, __PYX_ERR(0, 79, __pyx_L1_error)); - /* "hunter/_tracer.pyx":81 + /* "hunter/_tracer.pyx":80 * * def __repr__(self): * return '' % ( # <<<<<<<<<<<<<< * id(self), * self.threading_support, */ - __Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error)) + __Pyx_TraceLine(80,0,__PYX_ERR(0, 80, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = 0; __pyx_t_3 = 127; @@ -2802,17 +2802,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_GIVEREF(__pyx_kp_u_hunter__tracer_Tracer_at_0x); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_hunter__tracer_Tracer_at_0x); - /* "hunter/_tracer.pyx":82 + /* "hunter/_tracer.pyx":81 * def __repr__(self): * return '' % ( * id(self), # <<<<<<<<<<<<<< * self.threading_support, * '' if self.handler is None else 'handler=', */ - __Pyx_TraceLine(82,0,__PYX_ERR(0, 82, __pyx_L1_error)) - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error) + __Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error)) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_Format(__pyx_t_4, __pyx_n_u_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 82, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Format(__pyx_t_4, __pyx_n_u_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 81, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; @@ -2825,15 +2825,15 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_GIVEREF(__pyx_kp_u_threading_support_2); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_threading_support_2); - /* "hunter/_tracer.pyx":83 + /* "hunter/_tracer.pyx":82 * return '' % ( * id(self), * self.threading_support, # <<<<<<<<<<<<<< * '' if self.handler is None else 'handler=', * '' if self.handler is None else repr(self.handler), */ - __Pyx_TraceLine(83,0,__PYX_ERR(0, 83, __pyx_L1_error)) - __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->threading_support), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error) + __Pyx_TraceLine(82,0,__PYX_ERR(0, 82, __pyx_L1_error)) + __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->threading_support), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -2845,14 +2845,14 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_GIVEREF(__pyx_kp_u_); PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_); - /* "hunter/_tracer.pyx":84 + /* "hunter/_tracer.pyx":83 * id(self), * self.threading_support, * '' if self.handler is None else 'handler=', # <<<<<<<<<<<<<< * '' if self.handler is None else repr(self.handler), * '' if self.previous is None else ', previous=', */ - __Pyx_TraceLine(84,0,__PYX_ERR(0, 84, __pyx_L1_error)) + __Pyx_TraceLine(83,0,__PYX_ERR(0, 83, __pyx_L1_error)) __pyx_t_6 = (__pyx_v_self->handler == Py_None); if ((__pyx_t_6 != 0)) { __Pyx_INCREF(__pyx_kp_u_stopped); @@ -2861,7 +2861,7 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_INCREF(__pyx_kp_u_handler); __pyx_t_5 = __pyx_kp_u_handler; } - __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3; @@ -2870,14 +2870,14 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_tracer.pyx":85 + /* "hunter/_tracer.pyx":84 * self.threading_support, * '' if self.handler is None else 'handler=', * '' if self.handler is None else repr(self.handler), # <<<<<<<<<<<<<< * '' if self.previous is None else ', previous=', * '' if self.previous is None else repr(self.previous), */ - __Pyx_TraceLine(85,0,__PYX_ERR(0, 85, __pyx_L1_error)) + __Pyx_TraceLine(84,0,__PYX_ERR(0, 84, __pyx_L1_error)) __pyx_t_6 = (__pyx_v_self->handler == Py_None); if ((__pyx_t_6 != 0)) { __Pyx_INCREF(__pyx_kp_u__2); @@ -2885,13 +2885,13 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h } else { __pyx_t_5 = __pyx_v_self->handler; __Pyx_INCREF(__pyx_t_5); - __pyx_t_7 = PyObject_Repr(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 85, __pyx_L1_error) + __pyx_t_7 = PyObject_Repr(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = __pyx_t_7; __pyx_t_7 = 0; } - __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 85, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_3; @@ -2900,14 +2900,14 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_t_7); __pyx_t_7 = 0; - /* "hunter/_tracer.pyx":86 + /* "hunter/_tracer.pyx":85 * '' if self.handler is None else 'handler=', * '' if self.handler is None else repr(self.handler), * '' if self.previous is None else ', previous=', # <<<<<<<<<<<<<< * '' if self.previous is None else repr(self.previous), * ) */ - __Pyx_TraceLine(86,0,__PYX_ERR(0, 86, __pyx_L1_error)) + __Pyx_TraceLine(85,0,__PYX_ERR(0, 85, __pyx_L1_error)) __pyx_t_6 = (__pyx_v_self->previous == Py_None); if ((__pyx_t_6 != 0)) { __Pyx_INCREF(__pyx_kp_u__2); @@ -2916,7 +2916,7 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_INCREF(__pyx_kp_u_previous); __pyx_t_7 = __pyx_kp_u_previous; } - __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 86, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3; @@ -2925,14 +2925,14 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_tracer.pyx":87 + /* "hunter/_tracer.pyx":86 * '' if self.handler is None else repr(self.handler), * '' if self.previous is None else ', previous=', * '' if self.previous is None else repr(self.previous), # <<<<<<<<<<<<<< * ) * */ - __Pyx_TraceLine(87,0,__PYX_ERR(0, 87, __pyx_L1_error)) + __Pyx_TraceLine(86,0,__PYX_ERR(0, 86, __pyx_L1_error)) __pyx_t_6 = (__pyx_v_self->previous == Py_None); if ((__pyx_t_6 != 0)) { __Pyx_INCREF(__pyx_kp_u__2); @@ -2940,13 +2940,13 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h } else { __pyx_t_7 = __pyx_v_self->previous; __Pyx_INCREF(__pyx_t_7); - __pyx_t_5 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 87, __pyx_L1_error) + __pyx_t_5 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_4 = __pyx_t_5; __pyx_t_5 = 0; } - __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 87, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; @@ -2959,22 +2959,22 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h __Pyx_GIVEREF(__pyx_kp_u__3); PyTuple_SET_ITEM(__pyx_t_1, 9, __pyx_kp_u__3); - /* "hunter/_tracer.pyx":81 + /* "hunter/_tracer.pyx":80 * * def __repr__(self): * return '' % ( # <<<<<<<<<<<<<< * id(self), * self.threading_support, */ - __Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error)) - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 10, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 81, __pyx_L1_error) + __Pyx_TraceLine(80,0,__PYX_ERR(0, 80, __pyx_L1_error)) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 10, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "hunter/_tracer.pyx":80 + /* "hunter/_tracer.pyx":79 * self.stop() * * def __repr__(self): # <<<<<<<<<<<<<< @@ -2997,7 +2997,7 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h return __pyx_r; } -/* "hunter/_tracer.pyx":90 +/* "hunter/_tracer.pyx":89 * ) * * def __call__(self, frame, kind, arg): # <<<<<<<<<<<<<< @@ -3007,7 +3007,7 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_4__repr__(struct __pyx_obj_6h /* Python wrapper */ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_7__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_6hunter_7_tracer_6Tracer_6__call__[] = "\n The settrace function.\n\n .. note::\n\n This always returns self (drills down) - as opposed to only drilling down when predicate(event) is True\n because it might match further inside.\n "; +static char __pyx_doc_6hunter_7_tracer_6Tracer_6__call__[] = "\n The settrace function.\n\n .. note::\n\n This always returns self (drills down) - as opposed to only drilling down when ``predicate(event)`` is True\n because it might match further inside.\n "; #if CYTHON_COMPILING_IN_CPYTHON struct wrapperbase __pyx_wrapperbase_6hunter_7_tracer_6Tracer_6__call__; #endif @@ -3043,17 +3043,17 @@ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_7__call__(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_kind)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, 1); __PYX_ERR(0, 90, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, 1); __PYX_ERR(0, 89, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_arg)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, 2); __PYX_ERR(0, 90, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, 2); __PYX_ERR(0, 89, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__call__") < 0)) __PYX_ERR(0, 90, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__call__") < 0)) __PYX_ERR(0, 89, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; @@ -3068,7 +3068,7 @@ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_7__call__(PyObject *__pyx_v_s } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 90, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__call__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 89, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("hunter._tracer.Tracer.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -3090,45 +3090,45 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_6__call__(struct __pyx_obj_6h int __pyx_t_3; int __pyx_t_4; __Pyx_RefNannySetupContext("__call__", 0); - __Pyx_TraceCall("__call__", __pyx_f[0], 90, 0, __PYX_ERR(0, 90, __pyx_L1_error)); + __Pyx_TraceCall("__call__", __pyx_f[0], 89, 0, __PYX_ERR(0, 89, __pyx_L1_error)); - /* "hunter/_tracer.pyx":99 + /* "hunter/_tracer.pyx":98 * because it might match further inside. * """ * trace_func(self, frame, KIND_NAMES.index(kind), arg) # <<<<<<<<<<<<<< * if kind == "call": * PyEval_SetTrace( trace_func, self) */ - __Pyx_TraceLine(99,0,__PYX_ERR(0, 99, __pyx_L1_error)) - if (!(likely(((__pyx_v_frame) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_frame, __pyx_ptype_6hunter_7_tracer_FrameType))))) __PYX_ERR(0, 99, __pyx_L1_error) - __pyx_t_1 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyTuple_Type_index, __pyx_v_6hunter_7_tracer_KIND_NAMES, __pyx_v_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error) + __Pyx_TraceLine(98,0,__PYX_ERR(0, 98, __pyx_L1_error)) + if (!(likely(((__pyx_v_frame) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_frame, __pyx_ptype_6hunter_7_tracer_FrameType))))) __PYX_ERR(0, 98, __pyx_L1_error) + __pyx_t_1 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyTuple_Type_index, __pyx_v_6hunter_7_tracer_KIND_NAMES, __pyx_v_kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 99, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __pyx_f_6hunter_7_tracer_trace_func(__pyx_v_self, ((PyFrameObject *)__pyx_v_frame), __pyx_t_2, ((PyObject *)__pyx_v_arg)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 99, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6hunter_7_tracer_trace_func(__pyx_v_self, ((PyFrameObject *)__pyx_v_frame), __pyx_t_2, ((PyObject *)__pyx_v_arg)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 98, __pyx_L1_error) - /* "hunter/_tracer.pyx":100 + /* "hunter/_tracer.pyx":99 * """ * trace_func(self, frame, KIND_NAMES.index(kind), arg) * if kind == "call": # <<<<<<<<<<<<<< * PyEval_SetTrace( trace_func, self) * return self */ - __Pyx_TraceLine(100,0,__PYX_ERR(0, 100, __pyx_L1_error)) - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_kind, __pyx_n_u_call, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 100, __pyx_L1_error) + __Pyx_TraceLine(99,0,__PYX_ERR(0, 99, __pyx_L1_error)) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_kind, __pyx_n_u_call, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 99, __pyx_L1_error) if (__pyx_t_4) { - /* "hunter/_tracer.pyx":101 + /* "hunter/_tracer.pyx":100 * trace_func(self, frame, KIND_NAMES.index(kind), arg) * if kind == "call": * PyEval_SetTrace( trace_func, self) # <<<<<<<<<<<<<< * return self * */ - __Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error)) + __Pyx_TraceLine(100,0,__PYX_ERR(0, 100, __pyx_L1_error)) PyEval_SetTrace(((Py_tracefunc)__pyx_f_6hunter_7_tracer_trace_func), ((PyObject *)__pyx_v_self)); - /* "hunter/_tracer.pyx":100 + /* "hunter/_tracer.pyx":99 * """ * trace_func(self, frame, KIND_NAMES.index(kind), arg) * if kind == "call": # <<<<<<<<<<<<<< @@ -3137,20 +3137,20 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_6__call__(struct __pyx_obj_6h */ } - /* "hunter/_tracer.pyx":102 + /* "hunter/_tracer.pyx":101 * if kind == "call": * PyEval_SetTrace( trace_func, self) * return self # <<<<<<<<<<<<<< * * def trace(self, predicate): */ - __Pyx_TraceLine(102,0,__PYX_ERR(0, 102, __pyx_L1_error)) + __Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "hunter/_tracer.pyx":90 + /* "hunter/_tracer.pyx":89 * ) * * def __call__(self, frame, kind, arg): # <<<<<<<<<<<<<< @@ -3170,16 +3170,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_6__call__(struct __pyx_obj_6h return __pyx_r; } -/* "hunter/_tracer.pyx":104 +/* "hunter/_tracer.pyx":103 * return self * * def trace(self, predicate): # <<<<<<<<<<<<<< - * cdef PyThreadState *state = PyThreadState_Get() - * self.handler = predicate + * """ + * Starts tracing with the given callable. */ /* Python wrapper */ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_9trace(PyObject *__pyx_v_self, PyObject *__pyx_v_predicate); /*proto*/ +static char __pyx_doc_6hunter_7_tracer_6Tracer_8trace[] = "\n Starts tracing with the given callable.\n\n Args:\n predicate (callable that accepts a single :obj:`hunter.Event` argument):\n Return:\n self\n "; static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_9trace(PyObject *__pyx_v_self, PyObject *__pyx_v_predicate) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -3204,40 +3205,40 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt PyObject *__pyx_t_6 = NULL; Py_tracefunc __pyx_t_7; __Pyx_RefNannySetupContext("trace", 0); - __Pyx_TraceCall("trace", __pyx_f[0], 104, 0, __PYX_ERR(0, 104, __pyx_L1_error)); + __Pyx_TraceCall("trace", __pyx_f[0], 103, 0, __PYX_ERR(0, 103, __pyx_L1_error)); - /* "hunter/_tracer.pyx":105 - * - * def trace(self, predicate): + /* "hunter/_tracer.pyx":112 + * self + * """ * cdef PyThreadState *state = PyThreadState_Get() # <<<<<<<<<<<<<< * self.handler = predicate * if self.threading_support is None or self.threading_support: */ - __Pyx_TraceLine(105,0,__PYX_ERR(0, 105, __pyx_L1_error)) + __Pyx_TraceLine(112,0,__PYX_ERR(0, 112, __pyx_L1_error)) __pyx_v_state = PyThreadState_Get(); - /* "hunter/_tracer.pyx":106 - * def trace(self, predicate): + /* "hunter/_tracer.pyx":113 + * """ * cdef PyThreadState *state = PyThreadState_Get() * self.handler = predicate # <<<<<<<<<<<<<< * if self.threading_support is None or self.threading_support: * self._threading_previous = getattr(threading, '_trace_hook', None) */ - __Pyx_TraceLine(106,0,__PYX_ERR(0, 106, __pyx_L1_error)) + __Pyx_TraceLine(113,0,__PYX_ERR(0, 113, __pyx_L1_error)) __Pyx_INCREF(__pyx_v_predicate); __Pyx_GIVEREF(__pyx_v_predicate); __Pyx_GOTREF(__pyx_v_self->handler); __Pyx_DECREF(__pyx_v_self->handler); __pyx_v_self->handler = __pyx_v_predicate; - /* "hunter/_tracer.pyx":107 + /* "hunter/_tracer.pyx":114 * cdef PyThreadState *state = PyThreadState_Get() * self.handler = predicate * if self.threading_support is None or self.threading_support: # <<<<<<<<<<<<<< * self._threading_previous = getattr(threading, '_trace_hook', None) * threading.settrace(self) */ - __Pyx_TraceLine(107,0,__PYX_ERR(0, 107, __pyx_L1_error)) + __Pyx_TraceLine(114,0,__PYX_ERR(0, 114, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_self->threading_support == Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { @@ -3245,22 +3246,22 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_self->threading_support); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 107, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_self->threading_support); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 114, __pyx_L1_error) __pyx_t_1 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "hunter/_tracer.pyx":108 + /* "hunter/_tracer.pyx":115 * self.handler = predicate * if self.threading_support is None or self.threading_support: * self._threading_previous = getattr(threading, '_trace_hook', None) # <<<<<<<<<<<<<< * threading.settrace(self) * if state.c_traceobj is NULL: */ - __Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_threading); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error) + __Pyx_TraceLine(115,0,__PYX_ERR(0, 115, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_threading); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_GetAttr3(__pyx_t_4, __pyx_n_u_trace_hook, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 108, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetAttr3(__pyx_t_4, __pyx_n_u_trace_hook, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GIVEREF(__pyx_t_5); @@ -3269,17 +3270,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt __pyx_v_self->_threading_previous = __pyx_t_5; __pyx_t_5 = 0; - /* "hunter/_tracer.pyx":109 + /* "hunter/_tracer.pyx":116 * if self.threading_support is None or self.threading_support: * self._threading_previous = getattr(threading, '_trace_hook', None) * threading.settrace(self) # <<<<<<<<<<<<<< * if state.c_traceobj is NULL: * self.previous = None */ - __Pyx_TraceLine(109,0,__PYX_ERR(0, 109, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_threading); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 109, __pyx_L1_error) + __Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_threading); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_settrace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 109, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_settrace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; @@ -3294,12 +3295,12 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt } __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_4, ((PyObject *)__pyx_v_self)) : __Pyx_PyObject_CallOneArg(__pyx_t_6, ((PyObject *)__pyx_v_self)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 109, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "hunter/_tracer.pyx":107 + /* "hunter/_tracer.pyx":114 * cdef PyThreadState *state = PyThreadState_Get() * self.handler = predicate * if self.threading_support is None or self.threading_support: # <<<<<<<<<<<<<< @@ -3308,42 +3309,42 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt */ } - /* "hunter/_tracer.pyx":110 + /* "hunter/_tracer.pyx":117 * self._threading_previous = getattr(threading, '_trace_hook', None) * threading.settrace(self) * if state.c_traceobj is NULL: # <<<<<<<<<<<<<< * self.previous = None * self._previousfunc = NULL */ - __Pyx_TraceLine(110,0,__PYX_ERR(0, 110, __pyx_L1_error)) + __Pyx_TraceLine(117,0,__PYX_ERR(0, 117, __pyx_L1_error)) __pyx_t_1 = ((__pyx_v_state->c_traceobj == NULL) != 0); if (__pyx_t_1) { - /* "hunter/_tracer.pyx":111 + /* "hunter/_tracer.pyx":118 * threading.settrace(self) * if state.c_traceobj is NULL: * self.previous = None # <<<<<<<<<<<<<< * self._previousfunc = NULL * else: */ - __Pyx_TraceLine(111,0,__PYX_ERR(0, 111, __pyx_L1_error)) + __Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->previous); __Pyx_DECREF(__pyx_v_self->previous); __pyx_v_self->previous = Py_None; - /* "hunter/_tracer.pyx":112 + /* "hunter/_tracer.pyx":119 * if state.c_traceobj is NULL: * self.previous = None * self._previousfunc = NULL # <<<<<<<<<<<<<< * else: * self.previous = (state.c_traceobj) */ - __Pyx_TraceLine(112,0,__PYX_ERR(0, 112, __pyx_L1_error)) + __Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error)) __pyx_v_self->_previousfunc = NULL; - /* "hunter/_tracer.pyx":110 + /* "hunter/_tracer.pyx":117 * self._threading_previous = getattr(threading, '_trace_hook', None) * threading.settrace(self) * if state.c_traceobj is NULL: # <<<<<<<<<<<<<< @@ -3353,14 +3354,14 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt goto __pyx_L6; } - /* "hunter/_tracer.pyx":114 + /* "hunter/_tracer.pyx":121 * self._previousfunc = NULL * else: * self.previous = (state.c_traceobj) # <<<<<<<<<<<<<< * self._previousfunc = state.c_tracefunc * PyEval_SetTrace( trace_func, self) */ - __Pyx_TraceLine(114,0,__PYX_ERR(0, 114, __pyx_L1_error)) + __Pyx_TraceLine(121,0,__PYX_ERR(0, 121, __pyx_L1_error)) /*else*/ { __pyx_t_5 = ((PyObject *)__pyx_v_state->c_traceobj); __Pyx_INCREF(__pyx_t_5); @@ -3370,48 +3371,48 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt __pyx_v_self->previous = __pyx_t_5; __pyx_t_5 = 0; - /* "hunter/_tracer.pyx":115 + /* "hunter/_tracer.pyx":122 * else: * self.previous = (state.c_traceobj) * self._previousfunc = state.c_tracefunc # <<<<<<<<<<<<<< * PyEval_SetTrace( trace_func, self) * return self */ - __Pyx_TraceLine(115,0,__PYX_ERR(0, 115, __pyx_L1_error)) + __Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error)) __pyx_t_7 = __pyx_v_state->c_tracefunc; __pyx_v_self->_previousfunc = __pyx_t_7; } __pyx_L6:; - /* "hunter/_tracer.pyx":116 + /* "hunter/_tracer.pyx":123 * self.previous = (state.c_traceobj) * self._previousfunc = state.c_tracefunc * PyEval_SetTrace( trace_func, self) # <<<<<<<<<<<<<< * return self * */ - __Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error)) + __Pyx_TraceLine(123,0,__PYX_ERR(0, 123, __pyx_L1_error)) PyEval_SetTrace(((Py_tracefunc)__pyx_f_6hunter_7_tracer_trace_func), ((PyObject *)__pyx_v_self)); - /* "hunter/_tracer.pyx":117 + /* "hunter/_tracer.pyx":124 * self._previousfunc = state.c_tracefunc * PyEval_SetTrace( trace_func, self) * return self # <<<<<<<<<<<<<< * * def stop(self): */ - __Pyx_TraceLine(117,0,__PYX_ERR(0, 117, __pyx_L1_error)) + __Pyx_TraceLine(124,0,__PYX_ERR(0, 124, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "hunter/_tracer.pyx":104 + /* "hunter/_tracer.pyx":103 * return self * * def trace(self, predicate): # <<<<<<<<<<<<<< - * cdef PyThreadState *state = PyThreadState_Get() - * self.handler = predicate + * """ + * Starts tracing with the given callable. */ /* function exit code */ @@ -3428,16 +3429,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_8trace(struct __pyx_obj_6hunt return __pyx_r; } -/* "hunter/_tracer.pyx":119 +/* "hunter/_tracer.pyx":126 * return self * * def stop(self): # <<<<<<<<<<<<<< - * if self.handler is not None: - * if self.previous is None: + * """ + * Stop tracing. Reinstalls the :ref:`hunter.Tracer.previous` tracer. */ /* Python wrapper */ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_11stop(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_6hunter_7_tracer_6Tracer_10stop[] = "\n Stop tracing. Reinstalls the :ref:`hunter.Tracer.previous` tracer.\n "; static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_11stop(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -3460,44 +3462,44 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("stop", 0); - __Pyx_TraceCall("stop", __pyx_f[0], 119, 0, __PYX_ERR(0, 119, __pyx_L1_error)); + __Pyx_TraceCall("stop", __pyx_f[0], 126, 0, __PYX_ERR(0, 126, __pyx_L1_error)); - /* "hunter/_tracer.pyx":120 - * - * def stop(self): + /* "hunter/_tracer.pyx":130 + * Stop tracing. Reinstalls the :ref:`hunter.Tracer.previous` tracer. + * """ * if self.handler is not None: # <<<<<<<<<<<<<< * if self.previous is None: * PyEval_SetTrace(NULL, NULL) */ - __Pyx_TraceLine(120,0,__PYX_ERR(0, 120, __pyx_L1_error)) + __Pyx_TraceLine(130,0,__PYX_ERR(0, 130, __pyx_L1_error)) __pyx_t_1 = (__pyx_v_self->handler != Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "hunter/_tracer.pyx":121 - * def stop(self): + /* "hunter/_tracer.pyx":131 + * """ * if self.handler is not None: * if self.previous is None: # <<<<<<<<<<<<<< * PyEval_SetTrace(NULL, NULL) * else: */ - __Pyx_TraceLine(121,0,__PYX_ERR(0, 121, __pyx_L1_error)) + __Pyx_TraceLine(131,0,__PYX_ERR(0, 131, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_self->previous == Py_None); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "hunter/_tracer.pyx":122 + /* "hunter/_tracer.pyx":132 * if self.handler is not None: * if self.previous is None: * PyEval_SetTrace(NULL, NULL) # <<<<<<<<<<<<<< * else: * PyEval_SetTrace(self._previousfunc, self.previous) */ - __Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error)) + __Pyx_TraceLine(132,0,__PYX_ERR(0, 132, __pyx_L1_error)) PyEval_SetTrace(NULL, NULL); - /* "hunter/_tracer.pyx":121 - * def stop(self): + /* "hunter/_tracer.pyx":131 + * """ * if self.handler is not None: * if self.previous is None: # <<<<<<<<<<<<<< * PyEval_SetTrace(NULL, NULL) @@ -3506,27 +3508,27 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt goto __pyx_L4; } - /* "hunter/_tracer.pyx":124 + /* "hunter/_tracer.pyx":134 * PyEval_SetTrace(NULL, NULL) * else: * PyEval_SetTrace(self._previousfunc, self.previous) # <<<<<<<<<<<<<< * self.handler = self.previous = None * self._previousfunc = NULL */ - __Pyx_TraceLine(124,0,__PYX_ERR(0, 124, __pyx_L1_error)) + __Pyx_TraceLine(134,0,__PYX_ERR(0, 134, __pyx_L1_error)) /*else*/ { PyEval_SetTrace(__pyx_v_self->_previousfunc, ((PyObject *)__pyx_v_self->previous)); } __pyx_L4:; - /* "hunter/_tracer.pyx":125 + /* "hunter/_tracer.pyx":135 * else: * PyEval_SetTrace(self._previousfunc, self.previous) * self.handler = self.previous = None # <<<<<<<<<<<<<< * self._previousfunc = NULL * if self.threading_support is None or self.threading_support: */ - __Pyx_TraceLine(125,0,__PYX_ERR(0, 125, __pyx_L1_error)) + __Pyx_TraceLine(135,0,__PYX_ERR(0, 135, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->handler); @@ -3538,24 +3540,24 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt __Pyx_DECREF(__pyx_v_self->previous); __pyx_v_self->previous = Py_None; - /* "hunter/_tracer.pyx":126 + /* "hunter/_tracer.pyx":136 * PyEval_SetTrace(self._previousfunc, self.previous) * self.handler = self.previous = None * self._previousfunc = NULL # <<<<<<<<<<<<<< * if self.threading_support is None or self.threading_support: * threading.settrace(self._threading_previous) */ - __Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error)) + __Pyx_TraceLine(136,0,__PYX_ERR(0, 136, __pyx_L1_error)) __pyx_v_self->_previousfunc = NULL; - /* "hunter/_tracer.pyx":127 + /* "hunter/_tracer.pyx":137 * self.handler = self.previous = None * self._previousfunc = NULL * if self.threading_support is None or self.threading_support: # <<<<<<<<<<<<<< * threading.settrace(self._threading_previous) * self._threading_previous = None */ - __Pyx_TraceLine(127,0,__PYX_ERR(0, 127, __pyx_L1_error)) + __Pyx_TraceLine(137,0,__PYX_ERR(0, 137, __pyx_L1_error)) __pyx_t_2 = (__pyx_v_self->threading_support == Py_None); __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { @@ -3563,22 +3565,22 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt __pyx_t_1 = __pyx_t_3; goto __pyx_L6_bool_binop_done; } - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_self->threading_support); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 127, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_self->threading_support); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 137, __pyx_L1_error) __pyx_t_1 = __pyx_t_3; __pyx_L6_bool_binop_done:; if (__pyx_t_1) { - /* "hunter/_tracer.pyx":128 + /* "hunter/_tracer.pyx":138 * self._previousfunc = NULL * if self.threading_support is None or self.threading_support: * threading.settrace(self._threading_previous) # <<<<<<<<<<<<<< * self._threading_previous = None * */ - __Pyx_TraceLine(128,0,__PYX_ERR(0, 128, __pyx_L1_error)) - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_threading); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 128, __pyx_L1_error) + __Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error)) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_threading); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_settrace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 128, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_settrace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; @@ -3593,26 +3595,26 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt } __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_5, __pyx_v_self->_threading_previous) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_self->_threading_previous); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "hunter/_tracer.pyx":129 + /* "hunter/_tracer.pyx":139 * if self.threading_support is None or self.threading_support: * threading.settrace(self._threading_previous) * self._threading_previous = None # <<<<<<<<<<<<<< * * def __enter__(self): */ - __Pyx_TraceLine(129,0,__PYX_ERR(0, 129, __pyx_L1_error)) + __Pyx_TraceLine(139,0,__PYX_ERR(0, 139, __pyx_L1_error)) __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->_threading_previous); __Pyx_DECREF(__pyx_v_self->_threading_previous); __pyx_v_self->_threading_previous = Py_None; - /* "hunter/_tracer.pyx":127 + /* "hunter/_tracer.pyx":137 * self.handler = self.previous = None * self._previousfunc = NULL * if self.threading_support is None or self.threading_support: # <<<<<<<<<<<<<< @@ -3621,21 +3623,21 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt */ } - /* "hunter/_tracer.pyx":120 - * - * def stop(self): + /* "hunter/_tracer.pyx":130 + * Stop tracing. Reinstalls the :ref:`hunter.Tracer.previous` tracer. + * """ * if self.handler is not None: # <<<<<<<<<<<<<< * if self.previous is None: * PyEval_SetTrace(NULL, NULL) */ } - /* "hunter/_tracer.pyx":119 + /* "hunter/_tracer.pyx":126 * return self * * def stop(self): # <<<<<<<<<<<<<< - * if self.handler is not None: - * if self.previous is None: + * """ + * Stop tracing. Reinstalls the :ref:`hunter.Tracer.previous` tracer. */ /* function exit code */ @@ -3654,16 +3656,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_10stop(struct __pyx_obj_6hunt return __pyx_r; } -/* "hunter/_tracer.pyx":131 +/* "hunter/_tracer.pyx":141 * self._threading_previous = None * * def __enter__(self): # <<<<<<<<<<<<<< - * return self - * + * """ + * Does nothing. Users are expected to call :func:`hunter.Tracer.trace`. */ /* Python wrapper */ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_13__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_6hunter_7_tracer_6Tracer_12__enter__[] = "\n Does nothing. Users are expected to call :func:`hunter.Tracer.trace`.\n\n Returns: self\n "; static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_13__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -3680,27 +3683,27 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_12__enter__(struct __pyx_obj_ __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); - __Pyx_TraceCall("__enter__", __pyx_f[0], 131, 0, __PYX_ERR(0, 131, __pyx_L1_error)); + __Pyx_TraceCall("__enter__", __pyx_f[0], 141, 0, __PYX_ERR(0, 141, __pyx_L1_error)); - /* "hunter/_tracer.pyx":132 - * - * def __enter__(self): + /* "hunter/_tracer.pyx":147 + * Returns: self + * """ * return self # <<<<<<<<<<<<<< * * def __exit__(self, exc_type, exc_val, exc_tb): */ - __Pyx_TraceLine(132,0,__PYX_ERR(0, 132, __pyx_L1_error)) + __Pyx_TraceLine(147,0,__PYX_ERR(0, 147, __pyx_L1_error)) __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "hunter/_tracer.pyx":131 + /* "hunter/_tracer.pyx":141 * self._threading_previous = None * * def __enter__(self): # <<<<<<<<<<<<<< - * return self - * + * """ + * Does nothing. Users are expected to call :func:`hunter.Tracer.trace`. */ /* function exit code */ @@ -3714,15 +3717,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_12__enter__(struct __pyx_obj_ return __pyx_r; } -/* "hunter/_tracer.pyx":134 +/* "hunter/_tracer.pyx":149 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< - * self.stop() + * """ + * Wrapper around :func:`hunter.Tracer.stop`. Does nothing with the arguments. */ /* Python wrapper */ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_6hunter_7_tracer_6Tracer_14__exit__[] = "\n Wrapper around :func:`hunter.Tracer.stop`. Does nothing with the arguments.\n "; static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_exc_type = 0; CYTHON_UNUSED PyObject *__pyx_v_exc_val = 0; @@ -3755,17 +3760,17 @@ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__(PyObject *__pyx_v_ case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_val)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 134, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(0, 149, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_exc_tb)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 134, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(0, 149, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 134, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(0, 149, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; @@ -3780,7 +3785,7 @@ static PyObject *__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__(PyObject *__pyx_v_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 134, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 149, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("hunter._tracer.Tracer.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -3801,15 +3806,15 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_14__exit__(struct __pyx_obj_6 PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("__exit__", 0); - __Pyx_TraceCall("__exit__", __pyx_f[0], 134, 0, __PYX_ERR(0, 134, __pyx_L1_error)); + __Pyx_TraceCall("__exit__", __pyx_f[0], 149, 0, __PYX_ERR(0, 149, __pyx_L1_error)); - /* "hunter/_tracer.pyx":135 - * - * def __exit__(self, exc_type, exc_val, exc_tb): + /* "hunter/_tracer.pyx":153 + * Wrapper around :func:`hunter.Tracer.stop`. Does nothing with the arguments. + * """ * self.stop() # <<<<<<<<<<<<<< */ - __Pyx_TraceLine(135,0,__PYX_ERR(0, 135, __pyx_L1_error)) - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error) + __Pyx_TraceLine(153,0,__PYX_ERR(0, 153, __pyx_L1_error)) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -3823,16 +3828,17 @@ static PyObject *__pyx_pf_6hunter_7_tracer_6Tracer_14__exit__(struct __pyx_obj_6 } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "hunter/_tracer.pyx":134 + /* "hunter/_tracer.pyx":149 * return self * * def __exit__(self, exc_type, exc_val, exc_tb): # <<<<<<<<<<<<<< - * self.stop() + * """ + * Wrapper around :func:`hunter.Tracer.stop`. Does nothing with the arguments. */ /* function exit code */ @@ -4328,10 +4334,10 @@ static PyObject *__pyx_getprop_6hunter_7_tracer_6Tracer__threading_previous(PyOb } static PyMethodDef __pyx_methods_6hunter_7_tracer_Tracer[] = { - {"trace", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_9trace, METH_O, 0}, - {"stop", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_11stop, METH_NOARGS, 0}, - {"__enter__", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_13__enter__, METH_NOARGS, 0}, - {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__, METH_VARARGS|METH_KEYWORDS, 0}, + {"trace", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_9trace, METH_O, __pyx_doc_6hunter_7_tracer_6Tracer_8trace}, + {"stop", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_11stop, METH_NOARGS, __pyx_doc_6hunter_7_tracer_6Tracer_10stop}, + {"__enter__", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_13__enter__, METH_NOARGS, __pyx_doc_6hunter_7_tracer_6Tracer_12__enter__}, + {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6hunter_7_tracer_6Tracer_15__exit__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6hunter_7_tracer_6Tracer_14__exit__}, {"__reduce_cython__", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_17__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_6hunter_7_tracer_6Tracer_19__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} @@ -4373,7 +4379,7 @@ static PyTypeObject __pyx_type_6hunter_7_tracer_Tracer = { 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ - "\n Tracer object.\n\n ", /*tp_doc*/ + "\n Tracer object.\n ", /*tp_doc*/ __pyx_tp_traverse_6hunter_7_tracer_Tracer, /*tp_traverse*/ __pyx_tp_clear_6hunter_7_tracer_Tracer, /*tp_clear*/ 0, /*tp_richcompare*/ @@ -4501,7 +4507,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { - __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(0, 82, __pyx_L1_error) + __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(0, 81, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error) return 0; __pyx_L1_error:;