From 81c612c4235a31ccc74d9980b033f81af52b496c Mon Sep 17 00:00:00 2001 From: Michael Axiak Date: Fri, 15 Jul 2011 10:07:56 -0400 Subject: [PATCH] Fixed issue #3, changed code to work with new re2 api. --- CHANGELIST | 3 + src/_re2.pxd | 7 +- src/re2.cpp | 2772 ++++++++++++++++++++++++++------------------------ src/re2.pyx | 26 +- 4 files changed, 1462 insertions(+), 1346 deletions(-) diff --git a/CHANGELIST b/CHANGELIST index 13c56f3e..c32dc879 100644 --- a/CHANGELIST +++ b/CHANGELIST @@ -1,3 +1,6 @@ +0.2.12) + - Fixed pyre2 to work with latest version of re2 (axiak) (issue #3) + 0.2.10) 2010-12-08 - Added .flags to pattern to make that transparent (axiak) - Added Python re unit tests (itsadok) diff --git a/src/_re2.pxd b/src/_re2.pxd index e5b4890f..7258ada5 100644 --- a/src/_re2.pxd +++ b/src/_re2.pxd @@ -41,7 +41,6 @@ cdef extern from "re2/stringpiece.h" namespace "re2": const_char_ptr data() int copy(char * buf, size_t n, size_t pos) int length() - ctypedef StringPiece const_StringPiece "const StringPiece" @@ -97,8 +96,8 @@ cdef extern from "re2/re2.h" namespace "re2": cdef cppclass RE2: RE2(const_StringPiece pattern, Options option) RE2(const_StringPiece pattern) - int Match(const_StringPiece text, int startpos, Anchor anchor, - StringPiece * match, int nmatch) nogil + int Match(const_StringPiece text, int startpos, int endpos, + Anchor anchor, StringPiece * match, int nmatch) nogil int NumberOfCapturingGroups() int ok() const_string pattern() @@ -113,7 +112,7 @@ cdef extern from "re2/re2.h" namespace "re2": # issues. cdef extern from "_re2macros.h": StringPiece * new_StringPiece_array(int) nogil - void delete_StringPiece_array(StringPiece* ptr) + void delete_StringPiece_array(StringPiece* ptr) # This fixes the bug Cython #548 whereby reference returns # cannot be addressed, due to it not being an l-value diff --git a/src/re2.cpp b/src/re2.cpp index 5a029452..18cb2722 100644 --- a/src/re2.cpp +++ b/src/re2.cpp @@ -1,4 +1,4 @@ -/* Generated by Cython 0.13 on Sun Dec 12 13:13:23 2010 */ +/* Generated by Cython 0.13 on Fri Jul 15 10:04:00 2011 */ #define PY_SSIZE_T_CLEAN #include "Python.h" @@ -279,7 +279,7 @@ static const char *__pyx_f[] = { /* Type declarations */ -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":454 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":462 * * * cdef _finditer(self, object string, int pos=0, int endpos=-1, int as_match=0): # <<<<<<<<<<<<<< @@ -294,7 +294,7 @@ struct __pyx_opt_args_3re2_7Pattern__finditer { int as_match; }; -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":374 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":374 * * * cdef class Pattern: # <<<<<<<<<<<<<< @@ -313,7 +313,7 @@ struct __pyx_obj_3re2_Pattern { PyObject *__weakref__; }; -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":97 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":97 * cdef void emit_endif "#endif //" () * * cdef class Match: # <<<<<<<<<<<<<< @@ -348,7 +348,7 @@ struct __pyx_vtabstruct_3re2_Match { static struct __pyx_vtabstruct_3re2_Match *__pyx_vtabptr_3re2_Match; -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":374 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":374 * * * cdef class Pattern: # <<<<<<<<<<<<<< @@ -806,23 +806,23 @@ static char __pyx_k_34[] = " \t\n\r\013\014"; static char __pyx_k_35[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"; static char __pyx_k_36[] = "set_fallback_notification (line 31)"; static char __pyx_k_37[] = "set_fallback_notification"; -static char __pyx_k_38[] = "Pattern.search (line 433)"; -static char __pyx_k_39[] = "Pattern.match (line 441)"; -static char __pyx_k_40[] = "Pattern.finditer (line 505)"; -static char __pyx_k_41[] = "Pattern.findall (line 513)"; -static char __pyx_k_42[] = "Pattern.split (line 520)"; -static char __pyx_k_43[] = "Pattern.sub (line 597)"; -static char __pyx_k_44[] = "Pattern.subn (line 605)"; -static char __pyx_k_45[] = "Pattern._subn_callback (line 689)"; -static char __pyx_k_46[] = "_compile (line 877)"; -static char __pyx_k_47[] = "search (line 948)"; -static char __pyx_k_48[] = "match (line 955)"; -static char __pyx_k_49[] = "finditer (line 962)"; -static char __pyx_k_50[] = "findall (line 971)"; -static char __pyx_k_51[] = "split (line 980)"; -static char __pyx_k_52[] = "sub (line 987)"; -static char __pyx_k_53[] = "subn (line 998)"; -static char __pyx_k_54[] = "escape (line 1016)"; +static char __pyx_k_38[] = "Pattern.search (line 441)"; +static char __pyx_k_39[] = "Pattern.match (line 449)"; +static char __pyx_k_40[] = "Pattern.finditer (line 513)"; +static char __pyx_k_41[] = "Pattern.findall (line 521)"; +static char __pyx_k_42[] = "Pattern.split (line 528)"; +static char __pyx_k_43[] = "Pattern.sub (line 605)"; +static char __pyx_k_44[] = "Pattern.subn (line 613)"; +static char __pyx_k_45[] = "Pattern._subn_callback (line 697)"; +static char __pyx_k_46[] = "_compile (line 885)"; +static char __pyx_k_47[] = "search (line 957)"; +static char __pyx_k_48[] = "match (line 964)"; +static char __pyx_k_49[] = "finditer (line 971)"; +static char __pyx_k_50[] = "findall (line 980)"; +static char __pyx_k_51[] = "split (line 989)"; +static char __pyx_k_52[] = "sub (line 996)"; +static char __pyx_k_53[] = "subn (line 1007)"; +static char __pyx_k_54[] = "escape (line 1025)"; static char __pyx_k__0[] = "0"; static char __pyx_k__I[] = "I"; static char __pyx_k__L[] = "L"; @@ -898,6 +898,7 @@ static char __pyx_k__encoded[] = "encoded"; static char __pyx_k__findall[] = "findall"; static char __pyx_k__isdigit[] = "isdigit"; static char __pyx_k__matches[] = "matches"; +static char __pyx_k__max_mem[] = "max_mem"; static char __pyx_k__ngroups[] = "ngroups"; static char __pyx_k__pattern[] = "pattern"; static char __pyx_k____init__[] = "__init__"; @@ -937,6 +938,7 @@ static char __pyx_k__VERSION_HEX[] = "VERSION_HEX"; static char __pyx_k___cache_repl[] = "_cache_repl"; static char __pyx_k___make_spans[] = "_make_spans"; static char __pyx_k__init_groups[] = "init_groups"; +static char __pyx_k__set_max_mem[] = "set_max_mem"; static char __pyx_k__match_string[] = "match_string"; static char __pyx_k__named_groups[] = "named_groups"; static char __pyx_k__set_encoding[] = "set_encoding"; @@ -1102,6 +1104,7 @@ static PyObject *__pyx_n_s__m; static PyObject *__pyx_n_s__match; static PyObject *__pyx_n_s__match_string; static PyObject *__pyx_n_s__matches; +static PyObject *__pyx_n_s__max_mem; static PyObject *__pyx_n_s__maxsplit; static PyObject *__pyx_n_s__named_groups; static PyObject *__pyx_n_s__next; @@ -1126,6 +1129,7 @@ static PyObject *__pyx_n_s__self; static PyObject *__pyx_n_s__set_case_sensitive; static PyObject *__pyx_n_s__set_encoding; static PyObject *__pyx_n_s__set_log_errors; +static PyObject *__pyx_n_s__set_max_mem; static PyObject *__pyx_n_s__sorted; static PyObject *__pyx_n_s__span; static PyObject *__pyx_n_s__split; @@ -1143,12 +1147,12 @@ static PyObject *__pyx_int_0; static PyObject *__pyx_int_1; static PyObject *__pyx_int_2; static PyObject *__pyx_int_neg_1; -static PyObject *__pyx_int_11; +static PyObject *__pyx_int_13; static PyObject *__pyx_int_100; static PyObject *__pyx_int_0x80; -static PyObject *__pyx_int_0x00020B; +static PyObject *__pyx_int_0x00020D; -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":31 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":31 * cdef int current_notification = FALLBACK_QUIETLY * * def set_fallback_notification(level): # <<<<<<<<<<<<<< @@ -1170,7 +1174,7 @@ static PyObject *__pyx_pf_3re2_set_fallback_notification(PyObject *__pyx_self, P __pyx_self = __pyx_self; __Pyx_INCREF(__pyx_v_level); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":39 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":39 * """ * global current_notification * level = int(level) # <<<<<<<<<<<<<< @@ -1189,7 +1193,7 @@ static PyObject *__pyx_pf_3re2_set_fallback_notification(PyObject *__pyx_self, P __pyx_v_level = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":40 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":40 * global current_notification * level = int(level) * if level < 0 or level > 2: # <<<<<<<<<<<<<< @@ -1211,7 +1215,7 @@ static PyObject *__pyx_pf_3re2_set_fallback_notification(PyObject *__pyx_self, P } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":41 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":41 * level = int(level) * if level < 0 or level > 2: * raise ValueError("This function expects a valid notification level.") # <<<<<<<<<<<<<< @@ -1233,7 +1237,7 @@ static PyObject *__pyx_pf_3re2_set_fallback_notification(PyObject *__pyx_self, P } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":42 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":42 * if level < 0 or level > 2: * raise ValueError("This function expects a valid notification level.") * current_notification = level # <<<<<<<<<<<<<< @@ -1257,7 +1261,7 @@ static PyObject *__pyx_pf_3re2_set_fallback_notification(PyObject *__pyx_self, P return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":60 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":60 * import warnings * * cdef object cpp_to_pystring(_re2.cpp_string input): # <<<<<<<<<<<<<< @@ -1270,7 +1274,7 @@ static PyObject *__pyx_f_3re2_cpp_to_pystring(std::string __pyx_v_input) { PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("cpp_to_pystring"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":64 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":64 * # to a python string. By taking the slice we go to the right size, * # despite spurious or missing null characters. * return input.c_str()[:input.length()] # <<<<<<<<<<<<<< @@ -1296,7 +1300,7 @@ static PyObject *__pyx_f_3re2_cpp_to_pystring(std::string __pyx_v_input) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":66 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":66 * return input.c_str()[:input.length()] * * cdef inline object cpp_to_utf8(_re2.cpp_string input): # <<<<<<<<<<<<<< @@ -1309,7 +1313,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_cpp_to_utf8(std::string __pyx_v_inpu PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("cpp_to_utf8"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":68 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":68 * cdef inline object cpp_to_utf8(_re2.cpp_string input): * # This function converts a std::string object to a utf8 object. * return cpython.unicode.PyUnicode_DecodeUTF8(input.c_str(), input.length(), 'strict') # <<<<<<<<<<<<<< @@ -1335,7 +1339,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_cpp_to_utf8(std::string __pyx_v_inpu return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":70 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":70 * return cpython.unicode.PyUnicode_DecodeUTF8(input.c_str(), input.length(), 'strict') * * cdef inline object char_to_utf8(_re2.const_char_ptr input, int length): # <<<<<<<<<<<<<< @@ -1348,7 +1352,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_char_to_utf8(const char* __pyx_v_inp PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("char_to_utf8"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":72 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":72 * cdef inline object char_to_utf8(_re2.const_char_ptr input, int length): * # This function converts a C string to a utf8 object. * return cpython.unicode.PyUnicode_DecodeUTF8(input, length, 'strict') # <<<<<<<<<<<<<< @@ -1374,7 +1378,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_char_to_utf8(const char* __pyx_v_inp return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":74 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":74 * return cpython.unicode.PyUnicode_DecodeUTF8(input, length, 'strict') * * cdef inline object unicode_to_bytestring(object pystring, int * encoded): # <<<<<<<<<<<<<< @@ -1389,7 +1393,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py __Pyx_RefNannySetupContext("unicode_to_bytestring"); __Pyx_INCREF(__pyx_v_pystring); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":76 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":76 * cdef inline object unicode_to_bytestring(object pystring, int * encoded): * # This function will convert a utf8 string to a bytestring object. * if cpython.unicode.PyUnicode_Check(pystring): # <<<<<<<<<<<<<< @@ -1399,7 +1403,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py __pyx_t_1 = PyUnicode_Check(__pyx_v_pystring); if (__pyx_t_1) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":78 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":78 * if cpython.unicode.PyUnicode_Check(pystring): * pystring = cpython.unicode.PyUnicode_EncodeUTF8(cpython.unicode.PyUnicode_AS_UNICODE(pystring), * cpython.unicode.PyUnicode_GET_SIZE(pystring), # <<<<<<<<<<<<<< @@ -1412,7 +1416,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py __pyx_v_pystring = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":80 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":80 * cpython.unicode.PyUnicode_GET_SIZE(pystring), * "strict") * encoded[0] = 1 # <<<<<<<<<<<<<< @@ -1424,7 +1428,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":82 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":82 * encoded[0] = 1 * else: * encoded[0] = 0 # <<<<<<<<<<<<<< @@ -1435,7 +1439,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":83 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":83 * else: * encoded[0] = 0 * return pystring # <<<<<<<<<<<<<< @@ -1460,7 +1464,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3re2_unicode_to_bytestring(PyObject *__py return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":85 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":85 * return pystring * * cdef inline int pystring_to_bytestring(object pystring, char ** cstring, Py_ssize_t * length): # <<<<<<<<<<<<<< @@ -1472,7 +1476,7 @@ static CYTHON_INLINE int __pyx_f_3re2_pystring_to_bytestring(PyObject *__pyx_v_p int __pyx_r; __Pyx_RefNannySetupContext("pystring_to_bytestring"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":91 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":91 * # it will move to utf-8. If utf8 does not work, then it has to be * # a non-supported encoding. * return _re2.PyObject_AsCharBuffer(pystring, <_re2.const_char_ptr*> cstring, length) # <<<<<<<<<<<<<< @@ -1488,7 +1492,7 @@ static CYTHON_INLINE int __pyx_f_3re2_pystring_to_bytestring(PyObject *__pyx_v_p return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":113 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":113 * cdef dict _named_indexes * * def __init__(self, object pattern_object, int num_groups): # <<<<<<<<<<<<<< @@ -1544,7 +1548,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx return -1; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":114 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":114 * * def __init__(self, object pattern_object, int num_groups): * self._lastindex = -1 # <<<<<<<<<<<<<< @@ -1553,7 +1557,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx */ ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_lastindex = -1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":115 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":115 * def __init__(self, object pattern_object, int num_groups): * self._lastindex = -1 * self._groups = None # <<<<<<<<<<<<<< @@ -1566,7 +1570,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx __Pyx_DECREF(((PyObject *)((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_groups)); ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_groups = ((PyObject *)Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":116 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":116 * self._lastindex = -1 * self._groups = None * self._pos = 0 # <<<<<<<<<<<<<< @@ -1575,7 +1579,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx */ ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_pos = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":117 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":117 * self._groups = None * self._pos = 0 * self._endpos = -1 # <<<<<<<<<<<<<< @@ -1584,7 +1588,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx */ ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_endpos = -1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":118 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":118 * self._pos = 0 * self._endpos = -1 * self.matches = _re2.new_StringPiece_array(num_groups + 1) # <<<<<<<<<<<<<< @@ -1593,7 +1597,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx */ ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->matches = new_StringPiece_array((__pyx_v_num_groups + 1)); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":119 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":119 * self._endpos = -1 * self.matches = _re2.new_StringPiece_array(num_groups + 1) * self.nmatches = num_groups # <<<<<<<<<<<<<< @@ -1602,7 +1606,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx */ ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->nmatches = __pyx_v_num_groups; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":120 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":120 * self.matches = _re2.new_StringPiece_array(num_groups + 1) * self.nmatches = num_groups * self._pattern_object = pattern_object # <<<<<<<<<<<<<< @@ -1620,7 +1624,7 @@ static int __pyx_pf_3re2_5Match___init__(PyObject *__pyx_v_self, PyObject *__pyx return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":122 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":122 * self._pattern_object = pattern_object * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -1632,7 +1636,7 @@ static void __pyx_pf_3re2_5Match___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pf_3re2_5Match___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannySetupContext("__dealloc__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":123 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":123 * * def __dealloc__(self): * _re2.delete_StringPiece_array(self.matches) # <<<<<<<<<<<<<< @@ -1644,7 +1648,7 @@ static void __pyx_pf_3re2_5Match___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyFinishContext(); } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":126 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":126 * * property re: * def __get__(self): # <<<<<<<<<<<<<< @@ -1657,7 +1661,7 @@ static PyObject *__pyx_pf_3re2_5Match_2re___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":127 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":127 * property re: * def __get__(self): * return self._pattern_object # <<<<<<<<<<<<<< @@ -1676,7 +1680,7 @@ static PyObject *__pyx_pf_3re2_5Match_2re___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":130 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":130 * * property pos: * def __get__(self): # <<<<<<<<<<<<<< @@ -1690,7 +1694,7 @@ static PyObject *__pyx_pf_3re2_5Match_3pos___get__(PyObject *__pyx_v_self) { PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":131 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":131 * property pos: * def __get__(self): * return self._pos # <<<<<<<<<<<<<< @@ -1716,7 +1720,7 @@ static PyObject *__pyx_pf_3re2_5Match_3pos___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":134 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":134 * * property endpos: * def __get__(self): # <<<<<<<<<<<<<< @@ -1730,7 +1734,7 @@ static PyObject *__pyx_pf_3re2_5Match_6endpos___get__(PyObject *__pyx_v_self) { PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":135 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":135 * property endpos: * def __get__(self): * return self._endpos # <<<<<<<<<<<<<< @@ -1756,7 +1760,7 @@ static PyObject *__pyx_pf_3re2_5Match_6endpos___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":138 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":138 * * property string: * def __get__(self): # <<<<<<<<<<<<<< @@ -1769,7 +1773,7 @@ static PyObject *__pyx_pf_3re2_5Match_6string___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":139 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":139 * property string: * def __get__(self): * return self.match_string # <<<<<<<<<<<<<< @@ -1788,7 +1792,7 @@ static PyObject *__pyx_pf_3re2_5Match_6string___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":141 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":141 * return self.match_string * * cdef init_groups(self): # <<<<<<<<<<<<<< @@ -1810,7 +1814,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ int __pyx_t_5; __Pyx_RefNannySetupContext("init_groups"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":142 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":142 * * cdef init_groups(self): * cdef list groups = [] # <<<<<<<<<<<<<< @@ -1822,7 +1826,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_v_groups = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":144 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":144 * cdef list groups = [] * cdef int i * cdef bint cur_encoded = self.encoded # <<<<<<<<<<<<<< @@ -1831,7 +1835,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_cur_encoded = __pyx_v_self->encoded; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":146 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":146 * cdef bint cur_encoded = self.encoded * * if self._groups is not None: # <<<<<<<<<<<<<< @@ -1841,7 +1845,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = (__pyx_v_self->_groups != ((PyObject *)Py_None)); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":147 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":147 * * if self._groups is not None: * return # <<<<<<<<<<<<<< @@ -1855,7 +1859,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":149 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":149 * return * * cdef _re2.const_char_ptr last_end = NULL # <<<<<<<<<<<<<< @@ -1864,7 +1868,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_last_end = NULL; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":150 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":150 * * cdef _re2.const_char_ptr last_end = NULL * cdef _re2.const_char_ptr cur_end = NULL # <<<<<<<<<<<<<< @@ -1873,7 +1877,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_cur_end = NULL; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":152 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":152 * cdef _re2.const_char_ptr cur_end = NULL * * for i in range(self.nmatches): # <<<<<<<<<<<<<< @@ -1884,7 +1888,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":153 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":153 * * for i in range(self.nmatches): * if self.matches[i].data() == NULL: # <<<<<<<<<<<<<< @@ -1894,7 +1898,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = ((__pyx_v_self->matches[__pyx_v_i]).data() == NULL); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":154 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":154 * for i in range(self.nmatches): * if self.matches[i].data() == NULL: * groups.append(None) # <<<<<<<<<<<<<< @@ -1909,7 +1913,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":156 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":156 * groups.append(None) * else: * if i > 0: # <<<<<<<<<<<<<< @@ -1919,7 +1923,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = (__pyx_v_i > 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":157 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":157 * else: * if i > 0: * cur_end = self.matches[i].data() + self.matches[i].length() # <<<<<<<<<<<<<< @@ -1928,7 +1932,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_cur_end = ((__pyx_v_self->matches[__pyx_v_i]).data() + (__pyx_v_self->matches[__pyx_v_i]).length()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":159 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":159 * cur_end = self.matches[i].data() + self.matches[i].length() * * if last_end == NULL: # <<<<<<<<<<<<<< @@ -1938,7 +1942,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = (__pyx_v_last_end == NULL); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":160 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":160 * * if last_end == NULL: * last_end = cur_end # <<<<<<<<<<<<<< @@ -1947,7 +1951,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_last_end = __pyx_v_cur_end; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":161 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":161 * if last_end == NULL: * last_end = cur_end * self._lastindex = i # <<<<<<<<<<<<<< @@ -1959,7 +1963,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":166 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":166 * # if two groups end at the same point, the earlier one is considered last * # so we don't switch our selection unless the end point has moved * if cur_end > last_end: # <<<<<<<<<<<<<< @@ -1969,7 +1973,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = (__pyx_v_cur_end > __pyx_v_last_end); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":167 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":167 * # so we don't switch our selection unless the end point has moved * if cur_end > last_end: * last_end = cur_end # <<<<<<<<<<<<<< @@ -1978,7 +1982,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ __pyx_v_last_end = __pyx_v_cur_end; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":168 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":168 * if cur_end > last_end: * last_end = cur_end * self._lastindex = i # <<<<<<<<<<<<<< @@ -1995,7 +1999,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":170 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":170 * self._lastindex = i * * if cur_encoded: # <<<<<<<<<<<<<< @@ -2004,7 +2008,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ */ if (__pyx_v_cur_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":171 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":171 * * if cur_encoded: * groups.append(char_to_utf8(self.matches[i].data(), self.matches[i].length())) # <<<<<<<<<<<<<< @@ -2022,7 +2026,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":173 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":173 * groups.append(char_to_utf8(self.matches[i].data(), self.matches[i].length())) * else: * groups.append(self.matches[i].data()[:self.matches[i].length()]) # <<<<<<<<<<<<<< @@ -2042,7 +2046,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ __pyx_L6:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":174 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":174 * else: * groups.append(self.matches[i].data()[:self.matches[i].length()]) * self._groups = tuple(groups) # <<<<<<<<<<<<<< @@ -2073,7 +2077,7 @@ static PyObject *__pyx_f_3re2_5Match_init_groups(struct __pyx_obj_3re2_Match *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":176 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":176 * self._groups = tuple(groups) * * def groups(self, default=None): # <<<<<<<<<<<<<< @@ -2131,7 +2135,7 @@ static PyObject *__pyx_pf_3re2_5Match_groups(PyObject *__pyx_v_self, PyObject *_ __pyx_L4_argument_unpacking_done:; __pyx_v_g = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":177 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":177 * * def groups(self, default=None): * self.init_groups() # <<<<<<<<<<<<<< @@ -2142,7 +2146,7 @@ static PyObject *__pyx_pf_3re2_5Match_groups(PyObject *__pyx_v_self, PyObject *_ __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":178 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":178 * def groups(self, default=None): * self.init_groups() * if default is not None: # <<<<<<<<<<<<<< @@ -2152,7 +2156,7 @@ static PyObject *__pyx_pf_3re2_5Match_groups(PyObject *__pyx_v_self, PyObject *_ __pyx_t_2 = (__pyx_v_default != Py_None); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":179 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":179 * self.init_groups() * if default is not None: * return tuple([g or default for g in self._groups[1:]]) # <<<<<<<<<<<<<< @@ -2198,7 +2202,7 @@ static PyObject *__pyx_pf_3re2_5Match_groups(PyObject *__pyx_v_self, PyObject *_ } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":180 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":180 * if default is not None: * return tuple([g or default for g in self._groups[1:]]) * return self._groups[1:] # <<<<<<<<<<<<<< @@ -2227,7 +2231,7 @@ static PyObject *__pyx_pf_3re2_5Match_groups(PyObject *__pyx_v_self, PyObject *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":182 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":182 * return self._groups[1:] * * def group(self, *args): # <<<<<<<<<<<<<< @@ -2257,7 +2261,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_v_groupnum = Py_None; __Pyx_INCREF(Py_None); __pyx_v_i = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":183 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":183 * * def group(self, *args): * if len(args) > 1: # <<<<<<<<<<<<<< @@ -2271,7 +2275,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_t_2 = (__pyx_t_1 > 1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":184 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":184 * def group(self, *args): * if len(args) > 1: * return tuple([self.group(i) for i in args]) # <<<<<<<<<<<<<< @@ -2316,7 +2320,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ goto __pyx_L5; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":185 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":185 * if len(args) > 1: * return tuple([self.group(i) for i in args]) * elif len(args) > 0: # <<<<<<<<<<<<<< @@ -2330,7 +2334,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_t_2 = (__pyx_t_1 > 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":186 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":186 * return tuple([self.group(i) for i in args]) * elif len(args) > 0: * groupnum = args[0] # <<<<<<<<<<<<<< @@ -2346,7 +2350,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":188 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":188 * groupnum = args[0] * else: * groupnum = 0 # <<<<<<<<<<<<<< @@ -2359,7 +2363,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":192 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":192 * cdef int idx * * self.init_groups() # <<<<<<<<<<<<<< @@ -2370,7 +2374,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":194 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":194 * self.init_groups() * * if isinstance(groupnum, basestring): # <<<<<<<<<<<<<< @@ -2380,7 +2384,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_t_2 = PyObject_IsInstance(__pyx_v_groupnum, __pyx_builtin_basestring); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":195 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":195 * * if isinstance(groupnum, basestring): * return self.groupdict()[groupnum] # <<<<<<<<<<<<<< @@ -2403,7 +2407,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ } __pyx_L8:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":197 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":197 * return self.groupdict()[groupnum] * * idx = groupnum # <<<<<<<<<<<<<< @@ -2413,7 +2417,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_t_8 = __Pyx_PyInt_AsInt(__pyx_v_groupnum); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_idx = __pyx_t_8; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":199 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":199 * idx = groupnum * * if idx > self.nmatches - 1: # <<<<<<<<<<<<<< @@ -2423,7 +2427,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ __pyx_t_2 = (__pyx_v_idx > (((struct __pyx_obj_3re2_Match *)__pyx_v_self)->nmatches - 1)); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":200 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":200 * * if idx > self.nmatches - 1: * raise IndexError("no such group") # <<<<<<<<<<<<<< @@ -2445,7 +2449,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ } __pyx_L9:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":201 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":201 * if idx > self.nmatches - 1: * raise IndexError("no such group") * return self._groups[idx] # <<<<<<<<<<<<<< @@ -2478,7 +2482,7 @@ static PyObject *__pyx_pf_3re2_5Match_group(PyObject *__pyx_v_self, PyObject *__ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":203 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":203 * return self._groups[idx] * * cdef object _convert_positions(self, positions): # <<<<<<<<<<<<<< @@ -2506,7 +2510,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __Pyx_RefNannySetupContext("_convert_positions"); __pyx_v_new_positions = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":204 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":204 * * cdef object _convert_positions(self, positions): * cdef char * s = self.match_string # <<<<<<<<<<<<<< @@ -2516,7 +2520,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_1 = PyBytes_AsString(__pyx_v_self->match_string); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_s = __pyx_t_1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":205 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":205 * cdef object _convert_positions(self, positions): * cdef char * s = self.match_string * cdef int cpos = 0 # <<<<<<<<<<<<<< @@ -2525,7 +2529,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_cpos = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":206 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":206 * cdef char * s = self.match_string * cdef int cpos = 0 * cdef int upos = 0 # <<<<<<<<<<<<<< @@ -2534,7 +2538,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_upos = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":207 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":207 * cdef int cpos = 0 * cdef int upos = 0 * cdef int size = len(self.match_string) # <<<<<<<<<<<<<< @@ -2544,7 +2548,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_2 = PyObject_Length(__pyx_v_self->match_string); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_size = __pyx_t_2; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":210 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":210 * cdef int c * * new_positions = [] # <<<<<<<<<<<<<< @@ -2557,7 +2561,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_v_new_positions = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":211 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":211 * * new_positions = [] * i = 0 # <<<<<<<<<<<<<< @@ -2566,7 +2570,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_i = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":212 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":212 * new_positions = [] * i = 0 * num_positions = len(positions) # <<<<<<<<<<<<<< @@ -2576,7 +2580,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_2 = PyObject_Length(__pyx_v_positions); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_num_positions = __pyx_t_2; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":213 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":213 * i = 0 * num_positions = len(positions) * if positions[i] == -1: # <<<<<<<<<<<<<< @@ -2592,7 +2596,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":214 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":214 * num_positions = len(positions) * if positions[i] == -1: * new_positions.append(-1) # <<<<<<<<<<<<<< @@ -2604,7 +2608,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } __pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_new_positions), __pyx_int_neg_1); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":215 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":215 * if positions[i] == -1: * new_positions.append(-1) * inc(i) # <<<<<<<<<<<<<< @@ -2613,7 +2617,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_i); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":216 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":216 * new_positions.append(-1) * inc(i) * if i == num_positions: # <<<<<<<<<<<<<< @@ -2623,7 +2627,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_i == __pyx_v_num_positions); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":217 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":217 * inc(i) * if i == num_positions: * return new_positions # <<<<<<<<<<<<<< @@ -2641,7 +2645,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":218 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":218 * if i == num_positions: * return new_positions * if positions[i] == 0: # <<<<<<<<<<<<<< @@ -2657,7 +2661,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":219 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":219 * return new_positions * if positions[i] == 0: * new_positions.append(0) # <<<<<<<<<<<<<< @@ -2669,7 +2673,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } __pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_new_positions), __pyx_int_0); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":220 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":220 * if positions[i] == 0: * new_positions.append(0) * inc(i) # <<<<<<<<<<<<<< @@ -2678,7 +2682,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_i); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":221 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":221 * new_positions.append(0) * inc(i) * if i == num_positions: # <<<<<<<<<<<<<< @@ -2688,7 +2692,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_i == __pyx_v_num_positions); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":222 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":222 * inc(i) * if i == num_positions: * return new_positions # <<<<<<<<<<<<<< @@ -2706,7 +2710,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":224 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":224 * return new_positions * * while cpos < size: # <<<<<<<<<<<<<< @@ -2717,7 +2721,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_cpos < __pyx_v_size); if (!__pyx_t_5) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":225 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":225 * * while cpos < size: * c = s[cpos] # <<<<<<<<<<<<<< @@ -2726,7 +2730,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_c = ((unsigned char)(__pyx_v_s[__pyx_v_cpos])); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":226 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":226 * while cpos < size: * c = s[cpos] * if c < 0x80: # <<<<<<<<<<<<<< @@ -2736,7 +2740,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_c < 0x80); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":227 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":227 * c = s[cpos] * if c < 0x80: * inc(cpos) # <<<<<<<<<<<<<< @@ -2745,7 +2749,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_cpos); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":228 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":228 * if c < 0x80: * inc(cpos) * inc(upos) # <<<<<<<<<<<<<< @@ -2756,7 +2760,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M goto __pyx_L9; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":229 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":229 * inc(cpos) * inc(upos) * elif c < 0xe0: # <<<<<<<<<<<<<< @@ -2766,7 +2770,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_c < 0xe0); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":230 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":230 * inc(upos) * elif c < 0xe0: * cpos += 2 # <<<<<<<<<<<<<< @@ -2775,7 +2779,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_cpos += 2; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":231 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":231 * elif c < 0xe0: * cpos += 2 * inc(upos) # <<<<<<<<<<<<<< @@ -2786,7 +2790,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M goto __pyx_L9; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":232 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":232 * cpos += 2 * inc(upos) * elif c < 0xf0: # <<<<<<<<<<<<<< @@ -2796,7 +2800,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_c < 0xf0); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":233 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":233 * inc(upos) * elif c < 0xf0: * cpos += 3 # <<<<<<<<<<<<<< @@ -2805,7 +2809,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_cpos += 3; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":234 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":234 * elif c < 0xf0: * cpos += 3 * inc(upos) # <<<<<<<<<<<<<< @@ -2817,7 +2821,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":236 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":236 * inc(upos) * else: * cpos += 4 # <<<<<<<<<<<<<< @@ -2826,7 +2830,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ __pyx_v_cpos += 4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":237 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":237 * else: * cpos += 4 * inc(upos) # <<<<<<<<<<<<<< @@ -2835,7 +2839,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_upos); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":240 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":240 * # wide unicode chars get 2 unichars when python is compiled with --enable-unicode=ucs2 * # TODO: verify this * emit_ifndef_py_unicode_wide() # <<<<<<<<<<<<<< @@ -2844,7 +2848,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ #if !defined(Py_UNICODE_WIDE) //(); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":241 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":241 * # TODO: verify this * emit_ifndef_py_unicode_wide() * inc(upos) # <<<<<<<<<<<<<< @@ -2853,7 +2857,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_upos); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":242 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":242 * emit_ifndef_py_unicode_wide() * inc(upos) * emit_endif() # <<<<<<<<<<<<<< @@ -2864,7 +2868,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M } __pyx_L9:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":244 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":244 * emit_endif() * * if positions[i] == cpos: # <<<<<<<<<<<<<< @@ -2883,7 +2887,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":245 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":245 * * if positions[i] == cpos: * new_positions.append(upos) # <<<<<<<<<<<<<< @@ -2898,7 +2902,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_new_positions), __pyx_t_7); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":246 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":246 * if positions[i] == cpos: * new_positions.append(upos) * inc(i) # <<<<<<<<<<<<<< @@ -2907,7 +2911,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M */ (++__pyx_v_i); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":247 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":247 * new_positions.append(upos) * inc(i) * if i == num_positions: # <<<<<<<<<<<<<< @@ -2917,7 +2921,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M __pyx_t_5 = (__pyx_v_i == __pyx_v_num_positions); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":248 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":248 * inc(i) * if i == num_positions: * return new_positions # <<<<<<<<<<<<<< @@ -2951,7 +2955,7 @@ static PyObject *__pyx_f_3re2_5Match__convert_positions(struct __pyx_obj_3re2_M return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":250 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":250 * return new_positions * * def _convert_spans(self, spans): # <<<<<<<<<<<<<< @@ -2980,7 +2984,7 @@ static PyObject *__pyx_pf_3re2_5Match__convert_spans(PyObject *__pyx_v_self, PyO __pyx_v_x = Py_None; __Pyx_INCREF(Py_None); __pyx_v_y = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":251 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":251 * * def _convert_spans(self, spans): * positions = [x for x,y in spans] + [y for x,y in spans] # <<<<<<<<<<<<<< @@ -3103,7 +3107,7 @@ static PyObject *__pyx_pf_3re2_5Match__convert_spans(PyObject *__pyx_v_self, PyO __pyx_v_positions = ((PyObject *)__pyx_t_4); __pyx_t_4 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":252 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":252 * def _convert_spans(self, spans): * positions = [x for x,y in spans] + [y for x,y in spans] * positions = sorted(set(positions)) # <<<<<<<<<<<<<< @@ -3130,7 +3134,7 @@ static PyObject *__pyx_pf_3re2_5Match__convert_spans(PyObject *__pyx_v_self, PyO __pyx_v_positions = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":253 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":253 * positions = [x for x,y in spans] + [y for x,y in spans] * positions = sorted(set(positions)) * posdict = dict(zip(positions, self._convert_positions(positions))) # <<<<<<<<<<<<<< @@ -3162,7 +3166,7 @@ static PyObject *__pyx_pf_3re2_5Match__convert_spans(PyObject *__pyx_v_self, PyO __pyx_v_posdict = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":255 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":255 * posdict = dict(zip(positions, self._convert_positions(positions))) * * return [(posdict[x], posdict[y]) for x,y in spans] # <<<<<<<<<<<<<< @@ -3264,7 +3268,7 @@ static PyObject *__pyx_pf_3re2_5Match__convert_spans(PyObject *__pyx_v_self, PyO return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":258 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":258 * * * cdef _make_spans(self): # <<<<<<<<<<<<<< @@ -3290,7 +3294,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __Pyx_RefNannySetupContext("_make_spans"); __pyx_v_spans = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":259 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":259 * * cdef _make_spans(self): * if self._spans is not None: # <<<<<<<<<<<<<< @@ -3300,7 +3304,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_t_1 = (__pyx_v_self->_spans != ((PyObject *)Py_None)); if (__pyx_t_1) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":260 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":260 * cdef _make_spans(self): * if self._spans is not None: * return # <<<<<<<<<<<<<< @@ -3314,7 +3318,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":263 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":263 * * cdef int start, end * cdef char * s = self.match_string # <<<<<<<<<<<<<< @@ -3324,7 +3328,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_t_2 = PyBytes_AsString(__pyx_v_self->match_string); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_s = __pyx_t_2; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":266 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":266 * cdef _re2.StringPiece * piece * * spans = [] # <<<<<<<<<<<<<< @@ -3337,7 +3341,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_v_spans = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":267 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":267 * * spans = [] * for i in range(self.nmatches): # <<<<<<<<<<<<<< @@ -3348,7 +3352,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":268 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":268 * spans = [] * for i in range(self.nmatches): * if self.matches[i].data() == NULL: # <<<<<<<<<<<<<< @@ -3358,7 +3362,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_t_1 = ((__pyx_v_self->matches[__pyx_v_i]).data() == NULL); if (__pyx_t_1) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":269 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":269 * for i in range(self.nmatches): * if self.matches[i].data() == NULL: * spans.append((-1, -1)) # <<<<<<<<<<<<<< @@ -3381,7 +3385,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":271 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":271 * spans.append((-1, -1)) * else: * piece = &self.matches[i] # <<<<<<<<<<<<<< @@ -3390,7 +3394,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ */ __pyx_v_piece = (&(__pyx_v_self->matches[__pyx_v_i])); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":272 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":272 * else: * piece = &self.matches[i] * if piece.data() == NULL: # <<<<<<<<<<<<<< @@ -3400,7 +3404,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_t_1 = (__pyx_v_piece->data() == NULL); if (__pyx_t_1) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":273 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":273 * piece = &self.matches[i] * if piece.data() == NULL: * return (-1, -1) # <<<<<<<<<<<<<< @@ -3423,7 +3427,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":274 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":274 * if piece.data() == NULL: * return (-1, -1) * start = piece.data() - s # <<<<<<<<<<<<<< @@ -3432,7 +3436,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ */ __pyx_v_start = (__pyx_v_piece->data() - __pyx_v_s); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":275 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":275 * return (-1, -1) * start = piece.data() - s * end = start + piece.length() # <<<<<<<<<<<<<< @@ -3441,7 +3445,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ */ __pyx_v_end = (__pyx_v_start + __pyx_v_piece->length()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":276 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":276 * start = piece.data() - s * end = start + piece.length() * spans.append((start, end)) # <<<<<<<<<<<<<< @@ -3468,7 +3472,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ __pyx_L6:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":278 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":278 * spans.append((start, end)) * * if self.encoded: # <<<<<<<<<<<<<< @@ -3477,7 +3481,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ */ if (__pyx_v_self->encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":279 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":279 * * if self.encoded: * spans = self._convert_spans(spans) # <<<<<<<<<<<<<< @@ -3502,7 +3506,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ } __pyx_L8:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":281 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":281 * spans = self._convert_spans(spans) * * self._spans = tuple(spans) # <<<<<<<<<<<<<< @@ -3538,7 +3542,7 @@ static PyObject *__pyx_f_3re2_5Match__make_spans(struct __pyx_obj_3re2_Match *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":284 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":284 * * property regs: * def __get__(self): # <<<<<<<<<<<<<< @@ -3553,7 +3557,7 @@ static PyObject *__pyx_pf_3re2_5Match_4regs___get__(PyObject *__pyx_v_self) { PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":285 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":285 * property regs: * def __get__(self): * if self._spans is None: # <<<<<<<<<<<<<< @@ -3563,7 +3567,7 @@ static PyObject *__pyx_pf_3re2_5Match_4regs___get__(PyObject *__pyx_v_self) { __pyx_t_1 = (((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_spans == ((PyObject *)Py_None)); if (__pyx_t_1) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":286 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":286 * def __get__(self): * if self._spans is None: * self._make_spans() # <<<<<<<<<<<<<< @@ -3577,7 +3581,7 @@ static PyObject *__pyx_pf_3re2_5Match_4regs___get__(PyObject *__pyx_v_self) { } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":287 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":287 * if self._spans is None: * self._make_spans() * return self._spans # <<<<<<<<<<<<<< @@ -3601,7 +3605,7 @@ static PyObject *__pyx_pf_3re2_5Match_4regs___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":289 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":289 * return self._spans * * def expand(self, object template): # <<<<<<<<<<<<<< @@ -3634,7 +3638,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __pyx_v_name = Py_None; __Pyx_INCREF(Py_None); __pyx_v_rest = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":292 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":292 * # TODO - This can be optimized to work a bit faster in C. * # Expand a template with groups * items = template.split('\\') # <<<<<<<<<<<<<< @@ -3656,7 +3660,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __pyx_v_items = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":293 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":293 * # Expand a template with groups * items = template.split('\\') * for i, item in enumerate(items[1:]): # <<<<<<<<<<<<<< @@ -3701,7 +3705,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __pyx_t_3 = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":294 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":294 * items = template.split('\\') * for i, item in enumerate(items[1:]): * if item[0].isdigit(): # <<<<<<<<<<<<<< @@ -3720,7 +3724,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":296 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":296 * if item[0].isdigit(): * # Number group * if item[0] == '0': # <<<<<<<<<<<<<< @@ -3736,7 +3740,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":297 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":297 * # Number group * if item[0] == '0': * items[i + 1] = '\x00' + item[1:] # <<<<<<<<<<<<<< @@ -3757,7 +3761,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":299 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":299 * items[i + 1] = '\x00' + item[1:] * else: * items[i + 1] = self.group(int(item[0])) + item[1:] # <<<<<<<<<<<<<< @@ -3801,7 +3805,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ goto __pyx_L7; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":300 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":300 * else: * items[i + 1] = self.group(int(item[0])) + item[1:] * elif item[:2] == 'g<' and '>' in item: # <<<<<<<<<<<<<< @@ -3823,7 +3827,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ } if (__pyx_t_9) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":302 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":302 * elif item[:2] == 'g<' and '>' in item: * # This is a named group * name, rest = item[2:].split('>', 1) # <<<<<<<<<<<<<< @@ -3876,7 +3880,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __pyx_t_2 = 0; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":303 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":303 * # This is a named group * name, rest = item[2:].split('>', 1) * items[i + 1] = self.group(name) + rest # <<<<<<<<<<<<<< @@ -3906,7 +3910,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":306 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":306 * else: * # This isn't a template at all * items[i + 1] = '\\' + item # <<<<<<<<<<<<<< @@ -3926,7 +3930,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":307 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":307 * # This isn't a template at all * items[i + 1] = '\\' + item * return ''.join(items) # <<<<<<<<<<<<<< @@ -3971,7 +3975,7 @@ static PyObject *__pyx_pf_3re2_5Match_expand(PyObject *__pyx_v_self, PyObject *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":309 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":309 * return ''.join(items) * * def groupdict(self): # <<<<<<<<<<<<<< @@ -3991,7 +3995,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U int __pyx_t_4; __Pyx_RefNannySetupContext("groupdict"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":311 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":311 * def groupdict(self): * cdef _re2.stringintmapiterator it * cdef dict result = {} # <<<<<<<<<<<<<< @@ -4003,7 +4007,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __pyx_v_result = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":312 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":312 * cdef _re2.stringintmapiterator it * cdef dict result = {} * cdef dict indexes = {} # <<<<<<<<<<<<<< @@ -4015,7 +4019,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __pyx_v_indexes = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":314 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":314 * cdef dict indexes = {} * * self.init_groups() # <<<<<<<<<<<<<< @@ -4026,7 +4030,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":316 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":316 * self.init_groups() * * if self._named_groups: # <<<<<<<<<<<<<< @@ -4036,7 +4040,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __pyx_t_2 = __Pyx_PyObject_IsTrue(((PyObject *)((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_groups)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":317 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":317 * * if self._named_groups: * return self._named_groups # <<<<<<<<<<<<<< @@ -4051,7 +4055,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":319 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":319 * return self._named_groups * * self._named_groups = result # <<<<<<<<<<<<<< @@ -4064,7 +4068,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_DECREF(((PyObject *)((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_groups)); ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_groups = __pyx_v_result; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":320 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":320 * * self._named_groups = result * it = self.named_groups.begin() # <<<<<<<<<<<<<< @@ -4073,7 +4077,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U */ __pyx_v_it = ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->named_groups->begin(); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":321 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":321 * self._named_groups = result * it = self.named_groups.begin() * while it != self.named_groups.end(): # <<<<<<<<<<<<<< @@ -4084,7 +4088,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __pyx_t_2 = (__pyx_v_it != ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->named_groups->end()); if (!__pyx_t_2) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":322 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":322 * it = self.named_groups.begin() * while it != self.named_groups.end(): * indexes[cpp_to_pystring(deref(it).first)] = deref(it).second # <<<<<<<<<<<<<< @@ -4099,7 +4103,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":323 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":323 * while it != self.named_groups.end(): * indexes[cpp_to_pystring(deref(it).first)] = deref(it).second * result[cpp_to_pystring(deref(it).first)] = self._groups[deref(it).second] # <<<<<<<<<<<<<< @@ -4115,7 +4119,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":324 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":324 * indexes[cpp_to_pystring(deref(it).first)] = deref(it).second * result[cpp_to_pystring(deref(it).first)] = self._groups[deref(it).second] * inc(it) # <<<<<<<<<<<<<< @@ -4125,7 +4129,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U (++__pyx_v_it); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":326 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":326 * inc(it) * * self._named_groups = result # <<<<<<<<<<<<<< @@ -4138,7 +4142,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_DECREF(((PyObject *)((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_groups)); ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_groups = __pyx_v_result; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":327 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":327 * * self._named_groups = result * self._named_indexes = indexes # <<<<<<<<<<<<<< @@ -4151,7 +4155,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U __Pyx_DECREF(((PyObject *)((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_indexes)); ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_named_indexes = __pyx_v_indexes; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":328 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":328 * self._named_groups = result * self._named_indexes = indexes * return result # <<<<<<<<<<<<<< @@ -4178,7 +4182,7 @@ static PyObject *__pyx_pf_3re2_5Match_groupdict(PyObject *__pyx_v_self, CYTHON_U return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":330 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":330 * return result * * def end(self, group=0): # <<<<<<<<<<<<<< @@ -4232,7 +4236,7 @@ static PyObject *__pyx_pf_3re2_5Match_end(PyObject *__pyx_v_self, PyObject *__py return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":331 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":331 * * def end(self, group=0): * return self.span(group)[1] # <<<<<<<<<<<<<< @@ -4272,7 +4276,7 @@ static PyObject *__pyx_pf_3re2_5Match_end(PyObject *__pyx_v_self, PyObject *__py return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":333 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":333 * return self.span(group)[1] * * def start(self, group=0): # <<<<<<<<<<<<<< @@ -4326,7 +4330,7 @@ static PyObject *__pyx_pf_3re2_5Match_start(PyObject *__pyx_v_self, PyObject *__ return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":334 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":334 * * def start(self, group=0): * return self.span(group)[0] # <<<<<<<<<<<<<< @@ -4366,7 +4370,7 @@ static PyObject *__pyx_pf_3re2_5Match_start(PyObject *__pyx_v_self, PyObject *__ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":336 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":336 * return self.span(group)[0] * * def span(self, group=0): # <<<<<<<<<<<<<< @@ -4421,7 +4425,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":337 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":337 * * def span(self, group=0): * self._make_spans() # <<<<<<<<<<<<<< @@ -4432,7 +4436,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":338 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":338 * def span(self, group=0): * self._make_spans() * if type(group) is int: # <<<<<<<<<<<<<< @@ -4442,7 +4446,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p __pyx_t_2 = (((PyObject *)Py_TYPE(__pyx_v_group)) == ((PyObject *)((PyObject*)&PyInt_Type))); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":339 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":339 * self._make_spans() * if type(group) is int: * if group > len(self._spans): # <<<<<<<<<<<<<< @@ -4462,7 +4466,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":340 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":340 * if type(group) is int: * if group > len(self._spans): * raise IndexError("no such group") # <<<<<<<<<<<<<< @@ -4484,7 +4488,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":341 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":341 * if group > len(self._spans): * raise IndexError("no such group") * return self._spans[group] # <<<<<<<<<<<<<< @@ -4501,7 +4505,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":343 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":343 * return self._spans[group] * else: * self.groupdict() # <<<<<<<<<<<<<< @@ -4515,7 +4519,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":344 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":344 * else: * self.groupdict() * if group not in self._named_indexes: # <<<<<<<<<<<<<< @@ -4529,7 +4533,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p } if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":345 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":345 * self.groupdict() * if group not in self._named_indexes: * raise IndexError("no such group") # <<<<<<<<<<<<<< @@ -4551,7 +4555,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p } __pyx_L8:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":346 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":346 * if group not in self._named_indexes: * raise IndexError("no such group") * return self._spans[self._named_indexes[group]] # <<<<<<<<<<<<<< @@ -4583,7 +4587,7 @@ static PyObject *__pyx_pf_3re2_5Match_span(PyObject *__pyx_v_self, PyObject *__p return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":350 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":350 * * property lastindex: * def __get__(self): # <<<<<<<<<<<<<< @@ -4598,7 +4602,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastindex___get__(PyObject *__pyx_v_self) int __pyx_t_2; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":351 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":351 * property lastindex: * def __get__(self): * self.init_groups() # <<<<<<<<<<<<<< @@ -4609,7 +4613,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastindex___get__(PyObject *__pyx_v_self) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":352 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":352 * def __get__(self): * self.init_groups() * if self._lastindex < 1: # <<<<<<<<<<<<<< @@ -4619,7 +4623,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastindex___get__(PyObject *__pyx_v_self) __pyx_t_2 = (((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_lastindex < 1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":353 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":353 * self.init_groups() * if self._lastindex < 1: * return None # <<<<<<<<<<<<<< @@ -4634,7 +4638,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastindex___get__(PyObject *__pyx_v_self) } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":355 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":355 * return None * else: * return self._lastindex # <<<<<<<<<<<<<< @@ -4662,7 +4666,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastindex___get__(PyObject *__pyx_v_self) return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":358 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":358 * * property lastgroup: * def __get__(self): # <<<<<<<<<<<<<< @@ -4678,7 +4682,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) int __pyx_t_2; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":359 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":359 * property lastgroup: * def __get__(self): * self.init_groups() # <<<<<<<<<<<<<< @@ -4689,7 +4693,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":362 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":362 * cdef _re2.stringintmapiterator it * * if self._lastindex < 1: # <<<<<<<<<<<<<< @@ -4699,7 +4703,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) __pyx_t_2 = (((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_lastindex < 1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":363 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":363 * * if self._lastindex < 1: * return None # <<<<<<<<<<<<<< @@ -4714,7 +4718,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":365 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":365 * return None * * it = self.named_groups.begin() # <<<<<<<<<<<<<< @@ -4723,7 +4727,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) */ __pyx_v_it = ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->named_groups->begin(); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":366 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":366 * * it = self.named_groups.begin() * while it != self.named_groups.end(): # <<<<<<<<<<<<<< @@ -4734,7 +4738,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) __pyx_t_2 = (__pyx_v_it != ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->named_groups->end()); if (!__pyx_t_2) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":367 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":367 * it = self.named_groups.begin() * while it != self.named_groups.end(): * if deref(it).second == self._lastindex: # <<<<<<<<<<<<<< @@ -4744,7 +4748,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) __pyx_t_2 = ((*__pyx_v_it).second == ((struct __pyx_obj_3re2_Match *)__pyx_v_self)->_lastindex); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":368 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":368 * while it != self.named_groups.end(): * if deref(it).second == self._lastindex: * return cpp_to_pystring(deref(it).first) # <<<<<<<<<<<<<< @@ -4761,7 +4765,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) } __pyx_L8:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":369 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":369 * if deref(it).second == self._lastindex: * return cpp_to_pystring(deref(it).first) * inc(it) # <<<<<<<<<<<<<< @@ -4771,7 +4775,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) (++__pyx_v_it); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":371 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":371 * inc(it) * * return None # <<<<<<<<<<<<<< @@ -4795,7 +4799,7 @@ static PyObject *__pyx_pf_3re2_5Match_9lastgroup___get__(PyObject *__pyx_v_self) return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":379 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":379 * cdef bint encoded * cdef int _flags * cdef public object pattern # <<<<<<<<<<<<<< @@ -4849,7 +4853,7 @@ static int __pyx_pf_3re2_7Pattern_7pattern___del__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":383 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":383 * * property flags: * def __get__(self): # <<<<<<<<<<<<<< @@ -4863,7 +4867,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_5flags___get__(PyObject *__pyx_v_self) { PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":384 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":384 * property flags: * def __get__(self): * return self._flags # <<<<<<<<<<<<<< @@ -4889,7 +4893,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_5flags___get__(PyObject *__pyx_v_self) { return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":387 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":387 * * property groups: * def __get__(self): # <<<<<<<<<<<<<< @@ -4903,7 +4907,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_6groups___get__(PyObject *__pyx_v_self) PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":388 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":388 * property groups: * def __get__(self): * return self.ngroups # <<<<<<<<<<<<<< @@ -4929,7 +4933,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_6groups___get__(PyObject *__pyx_v_self) return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":390 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":390 * return self.ngroups * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -4941,7 +4945,7 @@ static void __pyx_pf_3re2_7Pattern___dealloc__(PyObject *__pyx_v_self); /*proto* static void __pyx_pf_3re2_7Pattern___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannySetupContext("__dealloc__"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":391 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":391 * * def __dealloc__(self): * del self.re_pattern # <<<<<<<<<<<<<< @@ -4953,7 +4957,7 @@ static void __pyx_pf_3re2_7Pattern___dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyFinishContext(); } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":393 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":393 * del self.re_pattern * * cdef _search(self, string, int pos, int endpos, _re2.re2_Anchor anchoring): # <<<<<<<<<<<<<< @@ -4978,7 +4982,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ __Pyx_RefNannySetupContext("_search"); __Pyx_INCREF(__pyx_v_string); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":401 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":401 * cdef int result * cdef char * cstring * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -4987,7 +4991,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":403 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":403 * cdef int encoded = 0 * cdef _re2.StringPiece * sp * cdef Match m = Match(self, self.ngroups + 1) # <<<<<<<<<<<<<< @@ -5010,22 +5014,22 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ __pyx_v_m = ((struct __pyx_obj_3re2_Match *)__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":405 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":405 * cdef Match m = Match(self, self.ngroups + 1) * * if hasattr(string, 'tostring'): # <<<<<<<<<<<<<< * string = string.tostring() - * string = unicode_to_bytestring(string, &encoded) + * */ __pyx_t_3 = PyObject_HasAttr(__pyx_v_string, ((PyObject *)__pyx_n_s__tostring)); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":406 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":406 * * if hasattr(string, 'tostring'): * string = string.tostring() # <<<<<<<<<<<<<< + * * string = unicode_to_bytestring(string, &encoded) - * if pystring_to_bytestring(string, &cstring, &size) == -1: */ __pyx_t_1 = PyObject_GetAttr(__pyx_v_string, __pyx_n_s__tostring); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); @@ -5039,22 +5043,22 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":407 - * if hasattr(string, 'tostring'): + /* "/home/axiak/Documents/pyre2/src/re2.pyx":408 * string = string.tostring() + * * string = unicode_to_bytestring(string, &encoded) # <<<<<<<<<<<<<< + * * if pystring_to_bytestring(string, &cstring, &size) == -1: - * raise TypeError("expected string or buffer") */ - __pyx_t_2 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_string); __pyx_v_string = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":408 - * string = string.tostring() + /* "/home/axiak/Documents/pyre2/src/re2.pyx":410 * string = unicode_to_bytestring(string, &encoded) + * * if pystring_to_bytestring(string, &cstring, &size) == -1: # <<<<<<<<<<<<<< * raise TypeError("expected string or buffer") * @@ -5062,91 +5066,147 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ __pyx_t_3 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_string, (&__pyx_v_cstring), (&__pyx_v_size)) == -1); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":409 - * string = unicode_to_bytestring(string, &encoded) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":411 + * * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") # <<<<<<<<<<<<<< * - * if endpos != -1 and endpos < size: + * if endpos >= 0 and endpos <= pos: */ - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); - __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L4; } __pyx_L4:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":411 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":413 * raise TypeError("expected string or buffer") * - * if endpos != -1 and endpos < size: # <<<<<<<<<<<<<< - * size = endpos + * if endpos >= 0 and endpos <= pos: # <<<<<<<<<<<<<< + * return None * */ - __pyx_t_3 = (__pyx_v_endpos != -1); + __pyx_t_3 = (__pyx_v_endpos >= 0); if (__pyx_t_3) { - __pyx_t_4 = (__pyx_v_endpos < __pyx_v_size); + __pyx_t_4 = (__pyx_v_endpos <= __pyx_v_pos); __pyx_t_5 = __pyx_t_4; } else { __pyx_t_5 = __pyx_t_3; } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":412 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":414 * - * if endpos != -1 and endpos < size: - * size = endpos # <<<<<<<<<<<<<< + * if endpos >= 0 and endpos <= pos: + * return None # <<<<<<<<<<<<<< * - * sp = new _re2.StringPiece(cstring, size) + * if endpos >= 0 and endpos < size: */ - __pyx_v_size = __pyx_v_endpos; + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_None); + __pyx_r = Py_None; + goto __pyx_L0; goto __pyx_L5; } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":414 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":416 + * return None + * + * if endpos >= 0 and endpos < size: # <<<<<<<<<<<<<< + * size = endpos + * + */ + __pyx_t_5 = (__pyx_v_endpos >= 0); + if (__pyx_t_5) { + __pyx_t_3 = (__pyx_v_endpos < __pyx_v_size); + __pyx_t_4 = __pyx_t_3; + } else { + __pyx_t_4 = __pyx_t_5; + } + if (__pyx_t_4) { + + /* "/home/axiak/Documents/pyre2/src/re2.pyx":417 + * + * if endpos >= 0 and endpos < size: + * size = endpos # <<<<<<<<<<<<<< + * + * if pos > size: + */ + __pyx_v_size = __pyx_v_endpos; + goto __pyx_L6; + } + __pyx_L6:; + + /* "/home/axiak/Documents/pyre2/src/re2.pyx":419 * size = endpos * + * if pos > size: # <<<<<<<<<<<<<< + * return None + * + */ + __pyx_t_4 = (__pyx_v_pos > __pyx_v_size); + if (__pyx_t_4) { + + /* "/home/axiak/Documents/pyre2/src/re2.pyx":420 + * + * if pos > size: + * return None # <<<<<<<<<<<<<< + * + * sp = new _re2.StringPiece(cstring, size) + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_None); + __pyx_r = Py_None; + goto __pyx_L0; + goto __pyx_L7; + } + __pyx_L7:; + + /* "/home/axiak/Documents/pyre2/src/re2.pyx":422 + * return None + * * sp = new _re2.StringPiece(cstring, size) # <<<<<<<<<<<<<< * with nogil: - * result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) */ __pyx_v_sp = new re2::StringPiece(__pyx_v_cstring, __pyx_v_size); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":415 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":423 * * sp = new _re2.StringPiece(cstring, size) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) * */ { PyThreadState *_save; Py_UNBLOCK_THREADS /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":416 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":424 * sp = new _re2.StringPiece(cstring, size) * with nogil: - * result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< + * result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< * * del sp */ - __pyx_v_result = __pyx_v_self->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, __pyx_v_anchoring, __pyx_v_m->matches, (__pyx_v_self->ngroups + 1)); + __pyx_v_result = __pyx_v_self->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, ((int)__pyx_v_size), __pyx_v_anchoring, __pyx_v_m->matches, (__pyx_v_self->ngroups + 1)); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":415 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":423 * * sp = new _re2.StringPiece(cstring, size) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) * */ /*finally:*/ { @@ -5154,8 +5214,8 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ } } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":418 - * result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":426 + * result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) * * del sp # <<<<<<<<<<<<<< * if result == 0: @@ -5163,17 +5223,17 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ delete __pyx_v_sp; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":419 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":427 * * del sp * if result == 0: # <<<<<<<<<<<<<< * return None * m.encoded = (encoded) */ - __pyx_t_5 = (__pyx_v_result == 0); - if (__pyx_t_5) { + __pyx_t_4 = (__pyx_v_result == 0); + if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":420 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":428 * del sp * if result == 0: * return None # <<<<<<<<<<<<<< @@ -5184,11 +5244,11 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ __Pyx_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; - goto __pyx_L9; + goto __pyx_L11; } - __pyx_L9:; + __pyx_L11:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":421 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":429 * if result == 0: * return None * m.encoded = (encoded) # <<<<<<<<<<<<<< @@ -5197,7 +5257,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_m->encoded = ((int)__pyx_v_encoded); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":422 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":430 * return None * m.encoded = (encoded) * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) # <<<<<<<<<<<<<< @@ -5206,7 +5266,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_m->named_groups = addressof(__pyx_v_self->re_pattern->NamedCapturingGroups()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":423 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":431 * m.encoded = (encoded) * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 # <<<<<<<<<<<<<< @@ -5215,7 +5275,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_m->nmatches = (__pyx_v_self->ngroups + 1); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":424 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":432 * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 * m.match_string = string # <<<<<<<<<<<<<< @@ -5228,7 +5288,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ __Pyx_DECREF(__pyx_v_m->match_string); __pyx_v_m->match_string = __pyx_v_string; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":425 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":433 * m.nmatches = self.ngroups + 1 * m.match_string = string * m._pos = pos # <<<<<<<<<<<<<< @@ -5237,30 +5297,30 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_m->_pos = __pyx_v_pos; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":426 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":434 * m.match_string = string * m._pos = pos * if endpos == -1: # <<<<<<<<<<<<<< * m._endpos = len(string) * else: */ - __pyx_t_5 = (__pyx_v_endpos == -1); - if (__pyx_t_5) { + __pyx_t_4 = (__pyx_v_endpos == -1); + if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":427 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":435 * m._pos = pos * if endpos == -1: * m._endpos = len(string) # <<<<<<<<<<<<<< * else: * m._endpos = endpos */ - __pyx_t_6 = PyObject_Length(__pyx_v_string); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyObject_Length(__pyx_v_string); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_m->_endpos = __pyx_t_6; - goto __pyx_L10; + goto __pyx_L12; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":429 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":437 * m._endpos = len(string) * else: * m._endpos = endpos # <<<<<<<<<<<<<< @@ -5269,9 +5329,9 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ */ __pyx_v_m->_endpos = __pyx_v_endpos; } - __pyx_L10:; + __pyx_L12:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":430 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":438 * else: * m._endpos = endpos * return m # <<<<<<<<<<<<<< @@ -5298,7 +5358,7 @@ static PyObject *__pyx_f_3re2_7Pattern__search(struct __pyx_obj_3re2_Pattern *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":433 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":441 * * * def search(self, string, int pos=0, int endpos=-1): # <<<<<<<<<<<<<< @@ -5343,16 +5403,16 @@ static PyObject *__pyx_pf_3re2_7Pattern_search(PyObject *__pyx_v_self, PyObject } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "search") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "search") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_string = values[0]; if (values[1]) { - __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_pos = ((int)0); } if (values[2]) { - __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_endpos = ((int)-1); } @@ -5360,8 +5420,8 @@ static PyObject *__pyx_pf_3re2_7Pattern_search(PyObject *__pyx_v_self, PyObject __pyx_v_pos = ((int)0); __pyx_v_endpos = ((int)-1); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -5369,14 +5429,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_search(PyObject *__pyx_v_self, PyObject } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("search", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("search", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.search"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":438 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":446 * Match instance. Return None if no position in the string matches. * """ * return self._search(string, pos, endpos, _re2.UNANCHORED) # <<<<<<<<<<<<<< @@ -5384,7 +5444,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_search(PyObject *__pyx_v_self, PyObject * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_search(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, __pyx_v_pos, __pyx_v_endpos, RE2::UNANCHORED); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_search(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, __pyx_v_pos, __pyx_v_endpos, RE2::UNANCHORED); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -5402,7 +5462,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_search(PyObject *__pyx_v_self, PyObject return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":441 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":449 * * * def match(self, string, int pos=0, int endpos=-1): # <<<<<<<<<<<<<< @@ -5447,16 +5507,16 @@ static PyObject *__pyx_pf_3re2_7Pattern_match(PyObject *__pyx_v_self, PyObject * } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "match") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "match") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_string = values[0]; if (values[1]) { - __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_pos = ((int)0); } if (values[2]) { - __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_endpos = ((int)-1); } @@ -5464,8 +5524,8 @@ static PyObject *__pyx_pf_3re2_7Pattern_match(PyObject *__pyx_v_self, PyObject * __pyx_v_pos = ((int)0); __pyx_v_endpos = ((int)-1); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -5473,14 +5533,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_match(PyObject *__pyx_v_self, PyObject * } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("match", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("match", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.match"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":445 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":453 * Matches zero or more characters at the beginning of the string. * """ * return self._search(string, pos, endpos, _re2.ANCHOR_START) # <<<<<<<<<<<<<< @@ -5488,7 +5548,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_match(PyObject *__pyx_v_self, PyObject * * cdef _print_pattern(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_search(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, __pyx_v_pos, __pyx_v_endpos, RE2::ANCHOR_START); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_search(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, __pyx_v_pos, __pyx_v_endpos, RE2::ANCHOR_START); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -5506,7 +5566,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_match(PyObject *__pyx_v_self, PyObject * return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":447 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":455 * return self._search(string, pos, endpos, _re2.ANCHOR_START) * * cdef _print_pattern(self): # <<<<<<<<<<<<<< @@ -5521,7 +5581,7 @@ static PyObject *__pyx_f_3re2_7Pattern__print_pattern(struct __pyx_obj_3re2_Pat PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("_print_pattern"); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":449 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":457 * cdef _print_pattern(self): * cdef _re2.cpp_string * s * s = <_re2.cpp_string *>_re2.addressofs(self.re_pattern.pattern()) # <<<<<<<<<<<<<< @@ -5530,37 +5590,37 @@ static PyObject *__pyx_f_3re2_7Pattern__print_pattern(struct __pyx_obj_3re2_Pat */ __pyx_v_s = ((std::string *)addressofs(__pyx_v_self->re_pattern->pattern())); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":450 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":458 * cdef _re2.cpp_string * s * s = <_re2.cpp_string *>_re2.addressofs(self.re_pattern.pattern()) * print cpp_to_pystring(s[0]) + "\n" # <<<<<<<<<<<<<< * sys.stdout.flush() * */ - __pyx_t_1 = __pyx_f_3re2_cpp_to_pystring((__pyx_v_s[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_cpp_to_pystring((__pyx_v_s[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyNumber_Add(__pyx_t_1, ((PyObject *)__pyx_kp_s_10)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(__pyx_t_1, ((PyObject *)__pyx_kp_s_10)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (__Pyx_PrintOne(0, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_PrintOne(0, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":451 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":459 * s = <_re2.cpp_string *>_re2.addressofs(self.re_pattern.pattern()) * print cpp_to_pystring(s[0]) + "\n" * sys.stdout.flush() # <<<<<<<<<<<<<< * * */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__stdout); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__stdout); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__flush); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__flush); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __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; @@ -5578,7 +5638,7 @@ static PyObject *__pyx_f_3re2_7Pattern__print_pattern(struct __pyx_obj_3re2_Pat return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":454 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":462 * * * cdef _finditer(self, object string, int pos=0, int endpos=-1, int as_match=0): # <<<<<<<<<<<<<< @@ -5621,19 +5681,19 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __Pyx_INCREF(__pyx_v_string); __pyx_v_m = ((struct __pyx_obj_3re2_Match *)Py_None); __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":460 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":468 * cdef _re2.StringPiece * sp * cdef Match m * cdef list resultlist = [] # <<<<<<<<<<<<<< * cdef int encoded = 0 * */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_v_resultlist = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":461 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":469 * cdef Match m * cdef list resultlist = [] * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -5642,20 +5702,20 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":463 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":471 * cdef int encoded = 0 * * string = unicode_to_bytestring(string, &encoded) # <<<<<<<<<<<<<< * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_string); __pyx_v_string = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":464 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":472 * * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: # <<<<<<<<<<<<<< @@ -5665,29 +5725,29 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_2 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_string, (&__pyx_v_cstring), (&__pyx_v_size)) == -1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":465 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":473 * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") # <<<<<<<<<<<<<< * encoded = encoded * */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); - __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L3; } __pyx_L3:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":466 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":474 * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") * encoded = encoded # <<<<<<<<<<<<<< @@ -5696,7 +5756,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_encoded = ((int)__pyx_v_encoded); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":468 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":476 * encoded = encoded * * if endpos != -1 and endpos < size: # <<<<<<<<<<<<<< @@ -5712,7 +5772,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":469 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":477 * * if endpos != -1 and endpos < size: * size = endpos # <<<<<<<<<<<<<< @@ -5724,7 +5784,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } __pyx_L4:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":471 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":479 * size = endpos * * sp = new _re2.StringPiece(cstring, size) # <<<<<<<<<<<<<< @@ -5733,7 +5793,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_sp = new re2::StringPiece(__pyx_v_cstring, __pyx_v_size); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":473 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":481 * sp = new _re2.StringPiece(cstring, size) * * while True: # <<<<<<<<<<<<<< @@ -5743,16 +5803,16 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":474 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":482 * * while True: * m = Match(self, self.ngroups + 1) # <<<<<<<<<<<<<< * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) */ - __pyx_t_3 = PyInt_FromLong((__pyx_v_self->ngroups + 1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong((__pyx_v_self->ngroups + 1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self)); @@ -5760,39 +5820,39 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Match)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Match)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_v_m)); __pyx_v_m = ((struct __pyx_obj_3re2_Match *)__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":475 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":483 * while True: * m = Match(self, self.ngroups + 1) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: */ { PyThreadState *_save; Py_UNBLOCK_THREADS /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":476 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":484 * m = Match(self, self.ngroups + 1) * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< * if result == 0: * break */ - __pyx_v_result = __pyx_v_self->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, RE2::UNANCHORED, __pyx_v_m->matches, (__pyx_v_self->ngroups + 1)); + __pyx_v_result = __pyx_v_self->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, ((int)__pyx_v_size), RE2::UNANCHORED, __pyx_v_m->matches, (__pyx_v_self->ngroups + 1)); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":475 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":483 * while True: * m = Match(self, self.ngroups + 1) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: */ /*finally:*/ { @@ -5800,9 +5860,9 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":477 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":485 * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: # <<<<<<<<<<<<<< * break * m.encoded = encoded @@ -5810,8 +5870,8 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_5 = (__pyx_v_result == 0); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":478 - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":486 + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: * break # <<<<<<<<<<<<<< * m.encoded = encoded @@ -5822,7 +5882,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } __pyx_L12:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":479 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":487 * if result == 0: * break * m.encoded = encoded # <<<<<<<<<<<<<< @@ -5831,7 +5891,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_m->encoded = __pyx_v_encoded; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":480 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":488 * break * m.encoded = encoded * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) # <<<<<<<<<<<<<< @@ -5840,7 +5900,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_m->named_groups = addressof(__pyx_v_self->re_pattern->NamedCapturingGroups()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":481 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":489 * m.encoded = encoded * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 # <<<<<<<<<<<<<< @@ -5849,7 +5909,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_m->nmatches = (__pyx_v_self->ngroups + 1); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":482 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":490 * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 * m.match_string = string # <<<<<<<<<<<<<< @@ -5862,7 +5922,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __Pyx_DECREF(__pyx_v_m->match_string); __pyx_v_m->match_string = __pyx_v_string; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":483 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":491 * m.nmatches = self.ngroups + 1 * m.match_string = string * m._pos = pos # <<<<<<<<<<<<<< @@ -5871,7 +5931,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ __pyx_v_m->_pos = __pyx_v_pos; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":484 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":492 * m.match_string = string * m._pos = pos * if endpos == -1: # <<<<<<<<<<<<<< @@ -5881,20 +5941,20 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_5 = (__pyx_v_endpos == -1); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":485 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":493 * m._pos = pos * if endpos == -1: * m._endpos = len(string) # <<<<<<<<<<<<<< * else: * m._endpos = endpos */ - __pyx_t_6 = PyObject_Length(__pyx_v_string); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = PyObject_Length(__pyx_v_string); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_m->_endpos = __pyx_t_6; goto __pyx_L13; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":487 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":495 * m._endpos = len(string) * else: * m._endpos = endpos # <<<<<<<<<<<<<< @@ -5905,7 +5965,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } __pyx_L13:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":488 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":496 * else: * m._endpos = endpos * if as_match: # <<<<<<<<<<<<<< @@ -5914,7 +5974,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ if (__pyx_v_as_match) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":489 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":497 * m._endpos = endpos * if as_match: * if self.ngroups > 1: # <<<<<<<<<<<<<< @@ -5924,7 +5984,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_5 = (__pyx_v_self->ngroups > 1); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":490 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":498 * if as_match: * if self.ngroups > 1: * resultlist.append(m.groups("")) # <<<<<<<<<<<<<< @@ -5932,26 +5992,26 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern * resultlist.append(m.group(self.ngroups)) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_m), __pyx_n_s__groups); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_m), __pyx_n_s__groups); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_7)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_7)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7)); - __pyx_t_7 = PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_7); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_7); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L15; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":492 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":500 * resultlist.append(m.groups("")) * else: * resultlist.append(m.group(self.ngroups)) # <<<<<<<<<<<<<< @@ -5959,22 +6019,22 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern * resultlist.append(m) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_7 = PyObject_GetAttr(((PyObject *)__pyx_v_m), __pyx_n_s__group); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = PyObject_GetAttr(((PyObject *)__pyx_v_m), __pyx_n_s__group); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = PyInt_FromLong(__pyx_v_self->ngroups); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyInt_FromLong(__pyx_v_self->ngroups); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_7, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_L15:; @@ -5982,7 +6042,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":494 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":502 * resultlist.append(m.group(self.ngroups)) * else: * resultlist.append(m) # <<<<<<<<<<<<<< @@ -5990,13 +6050,13 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern * break */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_v_m)); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_v_m)); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L14:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":495 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":503 * else: * resultlist.append(m) * if pos == size: # <<<<<<<<<<<<<< @@ -6006,7 +6066,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_5 = (__pyx_v_pos == __pyx_v_size); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":496 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":504 * resultlist.append(m) * if pos == size: * break # <<<<<<<<<<<<<< @@ -6018,7 +6078,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } __pyx_L16:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":498 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":506 * break * # offset the pos to move to the next point * if m.matches[0].length() == 0: # <<<<<<<<<<<<<< @@ -6028,7 +6088,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern __pyx_t_5 = ((__pyx_v_m->matches[0]).length() == 0); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":499 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":507 * # offset the pos to move to the next point * if m.matches[0].length() == 0: * pos += 1 # <<<<<<<<<<<<<< @@ -6040,7 +6100,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":501 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":509 * pos += 1 * else: * pos = m.matches[0].data() - cstring + m.matches[0].length() # <<<<<<<<<<<<<< @@ -6053,7 +6113,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern } __pyx_L6_break:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":502 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":510 * else: * pos = m.matches[0].data() - cstring + m.matches[0].length() * del sp # <<<<<<<<<<<<<< @@ -6062,7 +6122,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern */ delete __pyx_v_sp; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":503 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":511 * pos = m.matches[0].data() - cstring + m.matches[0].length() * del sp * return resultlist # <<<<<<<<<<<<<< @@ -6091,7 +6151,7 @@ static PyObject *__pyx_f_3re2_7Pattern__finditer(struct __pyx_obj_3re2_Pattern return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":505 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":513 * return resultlist * * def finditer(self, object string, int pos=0, int endpos=-1): # <<<<<<<<<<<<<< @@ -6138,16 +6198,16 @@ static PyObject *__pyx_pf_3re2_7Pattern_finditer(PyObject *__pyx_v_self, PyObjec } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "finditer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "finditer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_string = values[0]; if (values[1]) { - __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_pos = ((int)0); } if (values[2]) { - __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_endpos = ((int)-1); } @@ -6155,8 +6215,8 @@ static PyObject *__pyx_pf_3re2_7Pattern_finditer(PyObject *__pyx_v_self, PyObjec __pyx_v_pos = ((int)0); __pyx_v_endpos = ((int)-1); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -6164,14 +6224,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_finditer(PyObject *__pyx_v_self, PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("finditer", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("finditer", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.finditer"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":511 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":519 * """ * # TODO This builds a list and returns its iterator. Probably could be more memory efficient * return self._finditer(string, pos, endpos, 0).__iter__() # <<<<<<<<<<<<<< @@ -6183,12 +6243,12 @@ static PyObject *__pyx_pf_3re2_7Pattern_finditer(PyObject *__pyx_v_self, PyObjec __pyx_t_2.pos = __pyx_v_pos; __pyx_t_2.endpos = __pyx_v_endpos; __pyx_t_2.as_match = 0; - __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_finditer(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_finditer(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s____iter__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s____iter__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_1; @@ -6208,7 +6268,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_finditer(PyObject *__pyx_v_self, PyObjec return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":513 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":521 * return self._finditer(string, pos, endpos, 0).__iter__() * * def findall(self, object string, int pos=0, int endpos=-1): # <<<<<<<<<<<<<< @@ -6254,16 +6314,16 @@ static PyObject *__pyx_pf_3re2_7Pattern_findall(PyObject *__pyx_v_self, PyObject } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findall") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findall") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_string = values[0]; if (values[1]) { - __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_pos = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_pos = ((int)0); } if (values[2]) { - __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_endpos = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_endpos = ((int)-1); } @@ -6271,8 +6331,8 @@ static PyObject *__pyx_pf_3re2_7Pattern_findall(PyObject *__pyx_v_self, PyObject __pyx_v_pos = ((int)0); __pyx_v_endpos = ((int)-1); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_endpos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_endpos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_pos = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_pos == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -6280,14 +6340,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_findall(PyObject *__pyx_v_self, PyObject } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.findall"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":518 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":526 * of strings. * """ * return self._finditer(string, pos, endpos, 1) # <<<<<<<<<<<<<< @@ -6299,7 +6359,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_findall(PyObject *__pyx_v_self, PyObject __pyx_t_2.pos = __pyx_v_pos; __pyx_t_2.endpos = __pyx_v_endpos; __pyx_t_2.as_match = 1; - __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_finditer(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = ((struct __pyx_vtabstruct_3re2_Pattern *)((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->__pyx_vtab)->_finditer(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self), __pyx_v_string, &__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -6317,7 +6377,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_findall(PyObject *__pyx_v_self, PyObject return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":520 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":528 * return self._finditer(string, pos, endpos, 1) * * def split(self, string, int maxsplit=0): # <<<<<<<<<<<<<< @@ -6376,18 +6436,18 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "split") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "split") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_string = values[0]; if (values[1]) { - __pyx_v_maxsplit = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_maxsplit = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_maxsplit = ((int)0); } } else { __pyx_v_maxsplit = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 2: __pyx_v_maxsplit = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_maxsplit = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -6395,7 +6455,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("split", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("split", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.split"); __Pyx_RefNannyFinishContext(); @@ -6406,7 +6466,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_v_match_end = Py_None; __Pyx_INCREF(Py_None); __pyx_v_group = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":526 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":534 * """ * cdef Py_ssize_t size * cdef int num_groups = 1 # <<<<<<<<<<<<<< @@ -6415,7 +6475,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_num_groups = 1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":529 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":537 * cdef int result * cdef int endpos * cdef int pos = 0 # <<<<<<<<<<<<<< @@ -6424,7 +6484,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_pos = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":530 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":538 * cdef int endpos * cdef int pos = 0 * cdef int lookahead = 0 # <<<<<<<<<<<<<< @@ -6433,7 +6493,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_lookahead = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":531 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":539 * cdef int pos = 0 * cdef int lookahead = 0 * cdef int num_split = 0 # <<<<<<<<<<<<<< @@ -6442,19 +6502,19 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_num_split = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":536 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":544 * cdef _re2.StringPiece * matches * cdef Match m * cdef list resultlist = [] # <<<<<<<<<<<<<< * cdef int encoded = 0 * */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_v_resultlist = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":537 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":545 * cdef Match m * cdef list resultlist = [] * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -6463,7 +6523,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":539 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":547 * cdef int encoded = 0 * * if maxsplit < 0: # <<<<<<<<<<<<<< @@ -6473,7 +6533,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_t_2 = (__pyx_v_maxsplit < 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":540 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":548 * * if maxsplit < 0: * maxsplit = 0 # <<<<<<<<<<<<<< @@ -6485,20 +6545,20 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":542 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":550 * maxsplit = 0 * * string = unicode_to_bytestring(string, &encoded) # <<<<<<<<<<<<<< * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_string); __pyx_v_string = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":543 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":551 * * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: # <<<<<<<<<<<<<< @@ -6508,29 +6568,29 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_t_2 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_string, (&__pyx_v_cstring), (&__pyx_v_size)) == -1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":544 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":552 * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") # <<<<<<<<<<<<<< * * encoded = encoded */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); - __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":546 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":554 * raise TypeError("expected string or buffer") * * encoded = encoded # <<<<<<<<<<<<<< @@ -6539,7 +6599,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_encoded = ((int)__pyx_v_encoded); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":548 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":556 * encoded = encoded * * matches = _re2.new_StringPiece_array(self.ngroups + 1) # <<<<<<<<<<<<<< @@ -6548,7 +6608,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_matches = new_StringPiece_array((((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":549 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":557 * * matches = _re2.new_StringPiece_array(self.ngroups + 1) * sp = new _re2.StringPiece(cstring, size) # <<<<<<<<<<<<<< @@ -6557,42 +6617,42 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_sp = new re2::StringPiece(__pyx_v_cstring, __pyx_v_size); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":551 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":559 * sp = new _re2.StringPiece(cstring, size) * * while True: # <<<<<<<<<<<<<< * with nogil: - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) */ while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":552 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":560 * * while True: * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) * if result == 0: */ { PyThreadState *_save; Py_UNBLOCK_THREADS /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":553 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":561 * while True: * with nogil: - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) # <<<<<<<<<<<<<< + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) # <<<<<<<<<<<<<< * if result == 0: * break */ - __pyx_v_result = ((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern->Match((__pyx_v_sp[0]), (__pyx_v_pos + __pyx_v_lookahead), RE2::UNANCHORED, __pyx_v_matches, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); + __pyx_v_result = ((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern->Match((__pyx_v_sp[0]), (__pyx_v_pos + __pyx_v_lookahead), ((int)__pyx_v_size), RE2::UNANCHORED, __pyx_v_matches, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":552 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":560 * * while True: * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) * if result == 0: */ /*finally:*/ { @@ -6600,9 +6660,9 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":554 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":562 * with nogil: - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) * if result == 0: # <<<<<<<<<<<<<< * break * @@ -6610,8 +6670,8 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_t_2 = (__pyx_v_result == 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":555 - * result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":563 + * result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) * if result == 0: * break # <<<<<<<<<<<<<< * @@ -6622,49 +6682,49 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L15:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":557 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":565 * break * * match_start = matches[0].data() - cstring # <<<<<<<<<<<<<< * match_end = match_start + matches[0].length() * */ - __pyx_t_3 = PyInt_FromLong(((__pyx_v_matches[0]).data() - __pyx_v_cstring)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(((__pyx_v_matches[0]).data() - __pyx_v_cstring)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_v_match_start); __pyx_v_match_start = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":558 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":566 * * match_start = matches[0].data() - cstring * match_end = match_start + matches[0].length() # <<<<<<<<<<<<<< * * # If an empty match, just look ahead until you find something */ - __pyx_t_3 = PyInt_FromLong((__pyx_v_matches[0]).length()); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong((__pyx_v_matches[0]).length()); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyNumber_Add(__pyx_v_match_start, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyNumber_Add(__pyx_v_match_start, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_v_match_end); __pyx_v_match_end = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":561 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":569 * * # If an empty match, just look ahead until you find something * if match_start == match_end: # <<<<<<<<<<<<<< * if pos + lookahead == size: * break */ - __pyx_t_1 = PyObject_RichCompare(__pyx_v_match_start, __pyx_v_match_end, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_RichCompare(__pyx_v_match_start, __pyx_v_match_end, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":562 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":570 * # If an empty match, just look ahead until you find something * if match_start == match_end: * if pos + lookahead == size: # <<<<<<<<<<<<<< @@ -6674,7 +6734,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_t_2 = ((__pyx_v_pos + __pyx_v_lookahead) == __pyx_v_size); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":563 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":571 * if match_start == match_end: * if pos + lookahead == size: * break # <<<<<<<<<<<<<< @@ -6686,7 +6746,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L17:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":564 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":572 * if pos + lookahead == size: * break * lookahead += 1 # <<<<<<<<<<<<<< @@ -6695,7 +6755,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_lookahead += 1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":565 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":573 * break * lookahead += 1 * continue # <<<<<<<<<<<<<< @@ -6707,7 +6767,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L16:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":567 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":575 * continue * * if encoded: # <<<<<<<<<<<<<< @@ -6716,7 +6776,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ if (__pyx_v_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":568 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":576 * * if encoded: * resultlist.append(char_to_utf8(&sp.data()[pos], match_start - pos)) # <<<<<<<<<<<<<< @@ -6724,24 +6784,24 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * resultlist.append(sp.data()[pos:match_start]) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_1 = PyInt_FromLong(__pyx_v_pos); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyInt_FromLong(__pyx_v_pos); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyNumber_Subtract(__pyx_v_match_start, __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Subtract(__pyx_v_match_start, __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), __pyx_t_4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L18; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":570 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":578 * resultlist.append(char_to_utf8(&sp.data()[pos], match_start - pos)) * else: * resultlist.append(sp.data()[pos:match_start]) # <<<<<<<<<<<<<< @@ -6749,17 +6809,17 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * for group in range(self.ngroups): */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_match_start); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_3 = PyBytes_FromStringAndSize(__pyx_v_sp->data() + __pyx_v_pos, __pyx_t_5 - __pyx_v_pos); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_match_start); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyBytes_FromStringAndSize(__pyx_v_sp->data() + __pyx_v_pos, __pyx_t_5 - __pyx_v_pos); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; } __pyx_L18:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":571 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":579 * else: * resultlist.append(sp.data()[pos:match_start]) * if self.ngroups > 0: # <<<<<<<<<<<<<< @@ -6769,27 +6829,27 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_t_2 = (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups > 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":572 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":580 * resultlist.append(sp.data()[pos:match_start]) * if self.ngroups > 0: * for group in range(self.ngroups): # <<<<<<<<<<<<<< * if matches[group + 1].data() == NULL: * resultlist.append(None) */ - __pyx_t_3 = PyInt_FromLong(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_5 = 0; __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); } else { - __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -6803,7 +6863,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } else { __pyx_t_3 = PyIter_Next(__pyx_t_1); if (!__pyx_t_3) { - if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;} break; } __Pyx_GOTREF(__pyx_t_3); @@ -6812,21 +6872,21 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * __pyx_v_group = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":573 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":581 * if self.ngroups > 0: * for group in range(self.ngroups): * if matches[group + 1].data() == NULL: # <<<<<<<<<<<<<< * resultlist.append(None) * else: */ - __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = ((__pyx_v_matches[__pyx_t_6]).data() == NULL); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":574 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":582 * for group in range(self.ngroups): * if matches[group + 1].data() == NULL: * resultlist.append(None) # <<<<<<<<<<<<<< @@ -6834,14 +6894,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * if encoded: */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), Py_None); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), Py_None); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L22; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":576 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":584 * resultlist.append(None) * else: * if encoded: # <<<<<<<<<<<<<< @@ -6850,7 +6910,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ if (__pyx_v_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":577 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":585 * else: * if encoded: * resultlist.append(char_to_utf8(matches[group + 1].data(), matches[group + 1].length())) # <<<<<<<<<<<<<< @@ -6858,25 +6918,25 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * resultlist.append(matches[group + 1].data()[:matches[group + 1].length()]) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __pyx_f_3re2_char_to_utf8((__pyx_v_matches[__pyx_t_6]).data(), (__pyx_v_matches[__pyx_t_7]).length()); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_3re2_char_to_utf8((__pyx_v_matches[__pyx_t_6]).data(), (__pyx_v_matches[__pyx_t_7]).length()); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L23; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":579 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":587 * resultlist.append(char_to_utf8(matches[group + 1].data(), matches[group + 1].length())) * else: * resultlist.append(matches[group + 1].data()[:matches[group + 1].length()]) # <<<<<<<<<<<<<< @@ -6884,19 +6944,19 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * # offset the pos to move to the next point */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(__pyx_v_group, __pyx_int_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyBytes_FromStringAndSize((__pyx_v_matches[__pyx_t_7]).data() + 0, (__pyx_v_matches[__pyx_t_6]).length() - 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyBytes_FromStringAndSize((__pyx_v_matches[__pyx_t_7]).data() + 0, (__pyx_v_matches[__pyx_t_6]).length() - 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; } __pyx_L23:; @@ -6908,17 +6968,17 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L19:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":582 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":590 * * # offset the pos to move to the next point * pos = match_end # <<<<<<<<<<<<<< * lookahead = 0 * */ - __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_v_match_end); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_v_match_end); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_pos = __pyx_t_4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":583 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":591 * # offset the pos to move to the next point * pos = match_end * lookahead = 0 # <<<<<<<<<<<<<< @@ -6927,7 +6987,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_lookahead = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":585 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":593 * lookahead = 0 * * num_split += 1 # <<<<<<<<<<<<<< @@ -6936,7 +6996,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ __pyx_v_num_split += 1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":586 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":594 * * num_split += 1 * if maxsplit and num_split >= maxsplit: # <<<<<<<<<<<<<< @@ -6951,7 +7011,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } if (__pyx_t_8) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":587 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":595 * num_split += 1 * if maxsplit and num_split >= maxsplit: * break # <<<<<<<<<<<<<< @@ -6966,7 +7026,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * } __pyx_L9_break:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":589 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":597 * break * * if encoded: # <<<<<<<<<<<<<< @@ -6975,7 +7035,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ if (__pyx_v_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":590 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":598 * * if encoded: * resultlist.append(char_to_utf8(&sp.data()[pos], sp.length() - pos)) # <<<<<<<<<<<<<< @@ -6983,17 +7043,17 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * resultlist.append(sp.data()[pos:]) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_1 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_sp->length() - __pyx_v_pos)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_sp->length() - __pyx_v_pos)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_1); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_1); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L25; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":592 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":600 * resultlist.append(char_to_utf8(&sp.data()[pos], sp.length() - pos)) * else: * resultlist.append(sp.data()[pos:]) # <<<<<<<<<<<<<< @@ -7001,16 +7061,16 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * * del sp */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_1 = PyBytes_FromString(__pyx_v_sp->data() + __pyx_v_pos); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyBytes_FromString(__pyx_v_sp->data() + __pyx_v_pos); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_1)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_1)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; } __pyx_L25:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":593 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":601 * else: * resultlist.append(sp.data()[pos:]) * _re2.delete_StringPiece_array(matches) # <<<<<<<<<<<<<< @@ -7019,7 +7079,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ delete_StringPiece_array(__pyx_v_matches); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":594 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":602 * resultlist.append(sp.data()[pos:]) * _re2.delete_StringPiece_array(matches) * del sp # <<<<<<<<<<<<<< @@ -7028,7 +7088,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * */ delete __pyx_v_sp; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":595 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":603 * _re2.delete_StringPiece_array(matches) * del sp * return resultlist # <<<<<<<<<<<<<< @@ -7058,7 +7118,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_split(PyObject *__pyx_v_self, PyObject * return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":597 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":605 * return resultlist * * def sub(self, repl, string, int count=0): # <<<<<<<<<<<<<< @@ -7097,7 +7157,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("sub", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("sub", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -7106,12 +7166,12 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sub") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sub") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_repl = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_count = ((int)0); } @@ -7119,7 +7179,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ __pyx_v_count = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_repl = PyTuple_GET_ITEM(__pyx_args, 0); @@ -7129,14 +7189,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("sub", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("sub", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.sub"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":603 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":611 * occurrences of pattern in string by the replacement repl. * """ * return self.subn(repl, string, count)[0] # <<<<<<<<<<<<<< @@ -7144,11 +7204,11 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ * def subn(self, repl, string, int count=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__subn); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__subn); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_repl); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_repl); @@ -7159,11 +7219,11 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -7184,7 +7244,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_sub(PyObject *__pyx_v_self, PyObject *__ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":605 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":613 * return self.subn(repl, string, count)[0] * * def subn(self, repl, string, int count=0): # <<<<<<<<<<<<<< @@ -7241,7 +7301,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("subn", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("subn", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -7250,12 +7310,12 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "subn") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "subn") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_repl = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_count = ((int)0); } @@ -7263,7 +7323,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_v_count = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_repl = PyTuple_GET_ITEM(__pyx_args, 0); @@ -7273,7 +7333,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("subn", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("subn", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern.subn"); __Pyx_RefNannyFinishContext(); @@ -7283,7 +7343,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __Pyx_INCREF(__pyx_v_string); __pyx_v_result = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":617 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":625 * cdef _re2.StringPiece * sp * cdef _re2.cpp_string * input_str * cdef total_replacements = 0 # <<<<<<<<<<<<<< @@ -7293,7 +7353,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __Pyx_INCREF(__pyx_int_0); __pyx_v_total_replacements = __pyx_int_0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":618 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":626 * cdef _re2.cpp_string * input_str * cdef total_replacements = 0 * cdef int string_encoded = 0 # <<<<<<<<<<<<<< @@ -7302,7 +7362,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_string_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":619 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":627 * cdef total_replacements = 0 * cdef int string_encoded = 0 * cdef int repl_encoded = 0 # <<<<<<<<<<<<<< @@ -7311,7 +7371,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_repl_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":620 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":628 * cdef int string_encoded = 0 * cdef int repl_encoded = 0 * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -7320,26 +7380,26 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":622 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":630 * cdef int encoded = 0 * * if callable(repl): # <<<<<<<<<<<<<< * # This is a callback, so let's use the custom function * return self._subn_callback(repl, string, count) */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_repl); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_repl); __Pyx_GIVEREF(__pyx_v_repl); - __pyx_t_2 = PyObject_Call(__pyx_builtin_callable, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_builtin_callable, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":624 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":632 * if callable(repl): * # This is a callback, so let's use the custom function * return self._subn_callback(repl, string, count) # <<<<<<<<<<<<<< @@ -7347,11 +7407,11 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ * string = unicode_to_bytestring(string, &string_encoded) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s___subn_callback); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s___subn_callback); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_repl); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_repl); @@ -7362,7 +7422,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -7373,33 +7433,33 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":626 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":634 * return self._subn_callback(repl, string, count) * * string = unicode_to_bytestring(string, &string_encoded) # <<<<<<<<<<<<<< * repl = unicode_to_bytestring(repl, &repl_encoded) * if pystring_to_bytestring(repl, &cstring, &size) == -1: */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_string_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_string_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_string); __pyx_v_string = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":627 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":635 * * string = unicode_to_bytestring(string, &string_encoded) * repl = unicode_to_bytestring(repl, &repl_encoded) # <<<<<<<<<<<<<< * if pystring_to_bytestring(repl, &cstring, &size) == -1: * raise TypeError("expected string or buffer") */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_repl, (&__pyx_v_repl_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_repl, (&__pyx_v_repl_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_repl); __pyx_v_repl = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":628 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":636 * string = unicode_to_bytestring(string, &string_encoded) * repl = unicode_to_bytestring(repl, &repl_encoded) * if pystring_to_bytestring(repl, &cstring, &size) == -1: # <<<<<<<<<<<<<< @@ -7409,29 +7469,29 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_3 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_repl, (&__pyx_v_cstring), (&__pyx_v_size)) == -1); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":629 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":637 * repl = unicode_to_bytestring(repl, &repl_encoded) * if pystring_to_bytestring(repl, &cstring, &size) == -1: * raise TypeError("expected string or buffer") # <<<<<<<<<<<<<< * * fixed_repl = NULL */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); - __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":631 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":639 * raise TypeError("expected string or buffer") * * fixed_repl = NULL # <<<<<<<<<<<<<< @@ -7440,7 +7500,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_fixed_repl = NULL; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":632 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":640 * * fixed_repl = NULL * cdef _re2.const_char_ptr s = cstring # <<<<<<<<<<<<<< @@ -7449,7 +7509,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_s = __pyx_v_cstring; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":633 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":641 * fixed_repl = NULL * cdef _re2.const_char_ptr s = cstring * cdef _re2.const_char_ptr end = s + size # <<<<<<<<<<<<<< @@ -7458,7 +7518,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_end = (__pyx_v_s + __pyx_v_size); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":634 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":642 * cdef _re2.const_char_ptr s = cstring * cdef _re2.const_char_ptr end = s + size * cdef int c = 0 # <<<<<<<<<<<<<< @@ -7467,7 +7527,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_c = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":635 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":643 * cdef _re2.const_char_ptr end = s + size * cdef int c = 0 * while s < end: # <<<<<<<<<<<<<< @@ -7478,7 +7538,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_3 = (__pyx_v_s < __pyx_v_end); if (!__pyx_t_3) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":636 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":644 * cdef int c = 0 * while s < end: * c = s[0] # <<<<<<<<<<<<<< @@ -7487,7 +7547,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_c = (__pyx_v_s[0]); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":637 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":645 * while s < end: * c = s[0] * if (c == '\\'): # <<<<<<<<<<<<<< @@ -7497,7 +7557,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_3 = (__pyx_v_c == '\\'); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":638 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":646 * c = s[0] * if (c == '\\'): * s += 1 # <<<<<<<<<<<<<< @@ -7506,7 +7566,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_s += 1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":639 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":647 * if (c == '\\'): * s += 1 * if s == end: # <<<<<<<<<<<<<< @@ -7516,32 +7576,32 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_3 = (__pyx_v_s == __pyx_v_end); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":640 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":648 * s += 1 * if s == end: * raise RegexError("Invalid rewrite pattern") # <<<<<<<<<<<<<< * c = s[0] * if c == '\\' or (c >= '0' and c <= '9'): */ - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_11)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_11)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_11)); - __pyx_t_2 = PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L11; } __pyx_L11:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":641 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":649 * if s == end: * raise RegexError("Invalid rewrite pattern") * c = s[0] # <<<<<<<<<<<<<< @@ -7550,7 +7610,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_c = (__pyx_v_s[0]); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":642 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":650 * raise RegexError("Invalid rewrite pattern") * c = s[0] * if c == '\\' or (c >= '0' and c <= '9'): # <<<<<<<<<<<<<< @@ -7572,7 +7632,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":643 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":651 * c = s[0] * if c == '\\' or (c >= '0' and c <= '9'): * if fixed_repl != NULL: # <<<<<<<<<<<<<< @@ -7582,7 +7642,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_fixed_repl != NULL); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":644 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":652 * if c == '\\' or (c >= '0' and c <= '9'): * if fixed_repl != NULL: * fixed_repl.push_back('\\') # <<<<<<<<<<<<<< @@ -7591,7 +7651,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_fixed_repl->push_back('\\'); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":645 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":653 * if fixed_repl != NULL: * fixed_repl.push_back('\\') * fixed_repl.push_back(c) # <<<<<<<<<<<<<< @@ -7606,7 +7666,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":647 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":655 * fixed_repl.push_back(c) * else: * if fixed_repl == NULL: # <<<<<<<<<<<<<< @@ -7616,7 +7676,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_fixed_repl == NULL); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":648 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":656 * else: * if fixed_repl == NULL: * fixed_repl = new _re2.cpp_string(cstring, s - cstring - 1) # <<<<<<<<<<<<<< @@ -7628,7 +7688,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } __pyx_L14:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":649 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":657 * if fixed_repl == NULL: * fixed_repl = new _re2.cpp_string(cstring, s - cstring - 1) * if c == 'n': # <<<<<<<<<<<<<< @@ -7638,7 +7698,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_c == 'n'); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":650 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":658 * fixed_repl = new _re2.cpp_string(cstring, s - cstring - 1) * if c == 'n': * fixed_repl.push_back('\n') # <<<<<<<<<<<<<< @@ -7650,7 +7710,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":652 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":660 * fixed_repl.push_back('\n') * else: * fixed_repl.push_back('\\') # <<<<<<<<<<<<<< @@ -7659,7 +7719,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_fixed_repl->push_back('\\'); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":653 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":661 * else: * fixed_repl.push_back('\\') * fixed_repl.push_back('\\') # <<<<<<<<<<<<<< @@ -7668,7 +7728,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ __pyx_v_fixed_repl->push_back('\\'); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":654 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":662 * fixed_repl.push_back('\\') * fixed_repl.push_back('\\') * fixed_repl.push_back(c) # <<<<<<<<<<<<<< @@ -7684,7 +7744,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":656 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":664 * fixed_repl.push_back(c) * else: * if fixed_repl != NULL: # <<<<<<<<<<<<<< @@ -7694,7 +7754,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_fixed_repl != NULL); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":657 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":665 * else: * if fixed_repl != NULL: * fixed_repl.push_back(c) # <<<<<<<<<<<<<< @@ -7708,7 +7768,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } __pyx_L10:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":659 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":667 * fixed_repl.push_back(c) * * s += 1 # <<<<<<<<<<<<<< @@ -7718,7 +7778,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_v_s += 1; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":660 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":668 * * s += 1 * if fixed_repl != NULL: # <<<<<<<<<<<<<< @@ -7728,7 +7788,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_fixed_repl != NULL); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":661 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":669 * s += 1 * if fixed_repl != NULL: * sp = new _re2.StringPiece(fixed_repl.c_str()) # <<<<<<<<<<<<<< @@ -7740,7 +7800,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":663 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":671 * sp = new _re2.StringPiece(fixed_repl.c_str()) * else: * sp = new _re2.StringPiece(cstring, size) # <<<<<<<<<<<<<< @@ -7751,17 +7811,17 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } __pyx_L17:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":665 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":673 * sp = new _re2.StringPiece(cstring, size) * * input_str = new _re2.cpp_string(string) # <<<<<<<<<<<<<< * if not count: * total_replacements = _re2.pattern_GlobalReplace(input_str, */ - __pyx_t_8 = PyBytes_AsString(__pyx_v_string); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyBytes_AsString(__pyx_v_string); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_input_str = new std::string(__pyx_t_8); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":666 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":674 * * input_str = new _re2.cpp_string(string) * if not count: # <<<<<<<<<<<<<< @@ -7771,14 +7831,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (!__pyx_v_count); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":669 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":677 * total_replacements = _re2.pattern_GlobalReplace(input_str, * self.re_pattern[0], * sp[0]) # <<<<<<<<<<<<<< * elif count == 1: * total_replacements = _re2.pattern_Replace(input_str, */ - __pyx_t_2 = PyInt_FromLong(pattern_GlobalReplace(__pyx_v_input_str, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern[0]), (__pyx_v_sp[0]))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(pattern_GlobalReplace(__pyx_v_input_str, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern[0]), (__pyx_v_sp[0]))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_total_replacements); __pyx_v_total_replacements = __pyx_t_2; @@ -7786,7 +7846,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ goto __pyx_L18; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":670 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":678 * self.re_pattern[0], * sp[0]) * elif count == 1: # <<<<<<<<<<<<<< @@ -7796,14 +7856,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ __pyx_t_5 = (__pyx_v_count == 1); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":673 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":681 * total_replacements = _re2.pattern_Replace(input_str, * self.re_pattern[0], * sp[0]) # <<<<<<<<<<<<<< * else: * del fixed_repl */ - __pyx_t_2 = PyInt_FromLong(pattern_Replace(__pyx_v_input_str, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern[0]), (__pyx_v_sp[0]))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(pattern_Replace(__pyx_v_input_str, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern[0]), (__pyx_v_sp[0]))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_total_replacements); __pyx_v_total_replacements = __pyx_t_2; @@ -7812,7 +7872,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":675 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":683 * sp[0]) * else: * del fixed_repl # <<<<<<<<<<<<<< @@ -7821,7 +7881,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_fixed_repl; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":676 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":684 * else: * del fixed_repl * del input_str # <<<<<<<<<<<<<< @@ -7830,7 +7890,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_input_str; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":677 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":685 * del fixed_repl * del input_str * del sp # <<<<<<<<<<<<<< @@ -7839,28 +7899,28 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_sp; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":678 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":686 * del input_str * del sp * raise NotImplementedError("So far pyre2 does not support custom replacement counts") # <<<<<<<<<<<<<< * * if string_encoded or (repl_encoded and total_replacements > 0): */ - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_kp_s_12)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_12)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_12)); - __pyx_t_1 = PyObject_Call(__pyx_builtin_NotImplementedError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_builtin_NotImplementedError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L18:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":680 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":688 * raise NotImplementedError("So far pyre2 does not support custom replacement counts") * * if string_encoded or (repl_encoded and total_replacements > 0): # <<<<<<<<<<<<<< @@ -7869,9 +7929,9 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ if (!__pyx_v_string_encoded) { if (__pyx_v_repl_encoded) { - __pyx_t_1 = PyObject_RichCompare(__pyx_v_total_replacements, __pyx_int_0, Py_GT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_RichCompare(__pyx_v_total_replacements, __pyx_int_0, Py_GT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = __pyx_t_5; } else { @@ -7883,14 +7943,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":681 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":689 * * if string_encoded or (repl_encoded and total_replacements > 0): * result = cpp_to_utf8(input_str[0]) # <<<<<<<<<<<<<< * else: * result = cpp_to_pystring(input_str[0]) */ - __pyx_t_1 = __pyx_f_3re2_cpp_to_utf8((__pyx_v_input_str[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_cpp_to_utf8((__pyx_v_input_str[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_result); __pyx_v_result = __pyx_t_1; @@ -7899,14 +7959,14 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":683 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":691 * result = cpp_to_utf8(input_str[0]) * else: * result = cpp_to_pystring(input_str[0]) # <<<<<<<<<<<<<< * del fixed_repl * del input_str */ - __pyx_t_1 = __pyx_f_3re2_cpp_to_pystring((__pyx_v_input_str[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_cpp_to_pystring((__pyx_v_input_str[0])); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_result); __pyx_v_result = __pyx_t_1; @@ -7914,7 +7974,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ } __pyx_L19:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":684 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":692 * else: * result = cpp_to_pystring(input_str[0]) * del fixed_repl # <<<<<<<<<<<<<< @@ -7923,7 +7983,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_fixed_repl; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":685 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":693 * result = cpp_to_pystring(input_str[0]) * del fixed_repl * del input_str # <<<<<<<<<<<<<< @@ -7932,7 +7992,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_input_str; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":686 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":694 * del fixed_repl * del input_str * del sp # <<<<<<<<<<<<<< @@ -7941,7 +8001,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ */ delete __pyx_v_sp; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":687 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":695 * del input_str * del sp * return (result, total_replacements) # <<<<<<<<<<<<<< @@ -7949,7 +8009,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ * def _subn_callback(self, callback, string, int count=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_result); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result); @@ -7979,7 +8039,7 @@ static PyObject *__pyx_pf_3re2_7Pattern_subn(PyObject *__pyx_v_self, PyObject *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":689 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":697 * return (result, total_replacements) * * def _subn_callback(self, callback, string, int count=0): # <<<<<<<<<<<<<< @@ -8031,7 +8091,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("_subn_callback", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("_subn_callback", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -8040,12 +8100,12 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "_subn_callback") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "_subn_callback") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_callback = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_count = ((int)0); } @@ -8053,7 +8113,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_v_count = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_callback = PyTuple_GET_ITEM(__pyx_args, 0); @@ -8063,7 +8123,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_subn_callback", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("_subn_callback", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Pattern._subn_callback"); __Pyx_RefNannyFinishContext(); @@ -8072,7 +8132,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __Pyx_INCREF(__pyx_v_string); __pyx_v_m = ((struct __pyx_obj_3re2_Match *)Py_None); __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":697 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":705 * cdef int result * cdef int endpos * cdef int pos = 0 # <<<<<<<<<<<<<< @@ -8081,7 +8141,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_pos = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":698 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":706 * cdef int endpos * cdef int pos = 0 * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -8090,7 +8150,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":699 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":707 * cdef int pos = 0 * cdef int encoded = 0 * cdef int num_repl = 0 # <<<<<<<<<<<<<< @@ -8099,19 +8159,19 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_num_repl = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":703 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":711 * cdef _re2.StringPiece * sp * cdef Match m * cdef list resultlist = [] # <<<<<<<<<<<<<< * * if count < 0: */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 711; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); __pyx_v_resultlist = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":705 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":713 * cdef list resultlist = [] * * if count < 0: # <<<<<<<<<<<<<< @@ -8121,7 +8181,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_t_2 = (__pyx_v_count < 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":706 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":714 * * if count < 0: * count = 0 # <<<<<<<<<<<<<< @@ -8133,20 +8193,20 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":708 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":716 * count = 0 * * string = unicode_to_bytestring(string, &encoded) # <<<<<<<<<<<<<< * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_string, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_string); __pyx_v_string = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":709 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":717 * * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: # <<<<<<<<<<<<<< @@ -8156,29 +8216,29 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_t_2 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_string, (&__pyx_v_cstring), (&__pyx_v_size)) == -1); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":710 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":718 * string = unicode_to_bytestring(string, &encoded) * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") # <<<<<<<<<<<<<< * encoded = encoded * */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_8)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_8)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8)); - __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":711 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":719 * if pystring_to_bytestring(string, &cstring, &size) == -1: * raise TypeError("expected string or buffer") * encoded = encoded # <<<<<<<<<<<<<< @@ -8187,7 +8247,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_encoded = ((int)__pyx_v_encoded); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":713 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":721 * encoded = encoded * * sp = new _re2.StringPiece(cstring, size) # <<<<<<<<<<<<<< @@ -8196,7 +8256,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_sp = new re2::StringPiece(__pyx_v_cstring, __pyx_v_size); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":715 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":723 * sp = new _re2.StringPiece(cstring, size) * * try: # <<<<<<<<<<<<<< @@ -8205,7 +8265,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":716 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":724 * * try: * while True: # <<<<<<<<<<<<<< @@ -8215,16 +8275,16 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":717 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":725 * try: * while True: * m = Match(self, self.ngroups + 1) # <<<<<<<<<<<<<< * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) */ - __pyx_t_3 = PyInt_FromLong((((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = PyInt_FromLong((((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self); @@ -8232,39 +8292,39 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Match)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Match)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_v_m)); __pyx_v_m = ((struct __pyx_obj_3re2_Match *)__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":718 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":726 * while True: * m = Match(self, self.ngroups + 1) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: */ { PyThreadState *_save; Py_UNBLOCK_THREADS /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":719 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":727 * m = Match(self, self.ngroups + 1) * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) # <<<<<<<<<<<<<< * if result == 0: * break */ - __pyx_v_result = ((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, RE2::UNANCHORED, __pyx_v_m->matches, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); + __pyx_v_result = ((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern->Match((__pyx_v_sp[0]), __pyx_v_pos, ((int)__pyx_v_size), RE2::UNANCHORED, __pyx_v_m->matches, (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1)); } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":718 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":726 * while True: * m = Match(self, self.ngroups + 1) * with nogil: # <<<<<<<<<<<<<< - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: */ /*finally:*/ { @@ -8272,9 +8332,9 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":720 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":728 * with nogil: - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: # <<<<<<<<<<<<<< * break * @@ -8282,8 +8342,8 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_t_2 = (__pyx_v_result == 0); if (__pyx_t_2) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":721 - * result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":729 + * result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) * if result == 0: * break # <<<<<<<<<<<<<< * @@ -8294,7 +8354,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } __pyx_L18:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":723 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":731 * break * * endpos = m.matches[0].data() - cstring # <<<<<<<<<<<<<< @@ -8303,7 +8363,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_endpos = ((__pyx_v_m->matches[0]).data() - __pyx_v_cstring); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":724 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":732 * * endpos = m.matches[0].data() - cstring * if encoded: # <<<<<<<<<<<<<< @@ -8312,7 +8372,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ if (__pyx_v_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":725 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":733 * endpos = m.matches[0].data() - cstring * if encoded: * resultlist.append(char_to_utf8(&sp.data()[pos], endpos - pos)) # <<<<<<<<<<<<<< @@ -8320,17 +8380,17 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * resultlist.append(sp.data()[pos:endpos]) */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L9;} } - __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_endpos - __pyx_v_pos)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_endpos - __pyx_v_pos)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L19; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":727 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":735 * resultlist.append(char_to_utf8(&sp.data()[pos], endpos - pos)) * else: * resultlist.append(sp.data()[pos:endpos]) # <<<<<<<<<<<<<< @@ -8338,16 +8398,16 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L9;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L9;} } - __pyx_t_3 = PyBytes_FromStringAndSize(__pyx_v_sp->data() + __pyx_v_pos, __pyx_v_endpos - __pyx_v_pos); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = PyBytes_FromStringAndSize(__pyx_v_sp->data() + __pyx_v_pos, __pyx_v_endpos - __pyx_v_pos); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_3)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; } __pyx_L19:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":728 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":736 * else: * resultlist.append(sp.data()[pos:endpos]) * pos = endpos + m.matches[0].length() # <<<<<<<<<<<<<< @@ -8356,7 +8416,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_pos = (__pyx_v_endpos + (__pyx_v_m->matches[0]).length()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":730 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":738 * pos = endpos + m.matches[0].length() * * m.encoded = encoded # <<<<<<<<<<<<<< @@ -8365,7 +8425,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_m->encoded = __pyx_v_encoded; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":731 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":739 * * m.encoded = encoded * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) # <<<<<<<<<<<<<< @@ -8374,7 +8434,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_m->named_groups = addressof(((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->re_pattern->NamedCapturingGroups()); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":732 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":740 * m.encoded = encoded * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 # <<<<<<<<<<<<<< @@ -8383,7 +8443,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_m->nmatches = (((struct __pyx_obj_3re2_Pattern *)__pyx_v_self)->ngroups + 1); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":733 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":741 * m.named_groups = _re2.addressof(self.re_pattern.NamedCapturingGroups()) * m.nmatches = self.ngroups + 1 * m.match_string = string # <<<<<<<<<<<<<< @@ -8396,7 +8456,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __Pyx_DECREF(__pyx_v_m->match_string); __pyx_v_m->match_string = __pyx_v_string; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":734 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":742 * m.nmatches = self.ngroups + 1 * m.match_string = string * resultlist.append(callback(m) or '') # <<<<<<<<<<<<<< @@ -8404,17 +8464,17 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * num_repl += 1 */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L9;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} } - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(((PyObject *)__pyx_v_m)); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_m)); __Pyx_GIVEREF(((PyObject *)__pyx_v_m)); - __pyx_t_1 = PyObject_Call(__pyx_v_callback, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_1 = PyObject_Call(__pyx_v_callback, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} if (!__pyx_t_2) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_INCREF(((PyObject *)__pyx_kp_s_7)); @@ -8423,10 +8483,10 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_t_3 = __pyx_t_1; __pyx_t_1 = 0; } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":736 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":744 * resultlist.append(callback(m) or '') * * num_repl += 1 # <<<<<<<<<<<<<< @@ -8435,7 +8495,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ __pyx_v_num_repl += 1; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":737 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":745 * * num_repl += 1 * if count and num_repl >= count: # <<<<<<<<<<<<<< @@ -8450,7 +8510,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":738 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":746 * num_repl += 1 * if count and num_repl >= count: * break # <<<<<<<<<<<<<< @@ -8464,7 +8524,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } __pyx_L12_break:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":740 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":748 * break * * if encoded: # <<<<<<<<<<<<<< @@ -8473,7 +8533,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P */ if (__pyx_v_encoded) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":741 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":749 * * if encoded: * resultlist.append(char_to_utf8(&sp.data()[pos], sp.length() - pos)) # <<<<<<<<<<<<<< @@ -8481,14 +8541,14 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * else: */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L9;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L9;} } - __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_sp->length() - __pyx_v_pos)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = __pyx_f_3re2_char_to_utf8((&(__pyx_v_sp->data()[__pyx_v_pos])), (__pyx_v_sp->length() - __pyx_v_pos)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":742 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":750 * if encoded: * resultlist.append(char_to_utf8(&sp.data()[pos], sp.length() - pos)) * return (u''.join(resultlist), num_repl) # <<<<<<<<<<<<<< @@ -8496,11 +8556,11 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * resultlist.append(sp.data()[pos:]) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = ((PyObject *)PyUnicode_Join(__pyx_kp_u_7, ((PyObject *)__pyx_v_resultlist))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = ((PyObject *)PyUnicode_Join(__pyx_kp_u_7, ((PyObject *)__pyx_v_resultlist))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_1 = PyInt_FromLong(__pyx_v_num_repl); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_1 = PyInt_FromLong(__pyx_v_num_repl); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_3)); __Pyx_GIVEREF(((PyObject *)__pyx_t_3)); @@ -8515,7 +8575,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":744 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":752 * return (u''.join(resultlist), num_repl) * else: * resultlist.append(sp.data()[pos:]) # <<<<<<<<<<<<<< @@ -8523,14 +8583,14 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * finally: */ if (unlikely(__pyx_v_resultlist == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L9;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L9;} } - __pyx_t_6 = PyBytes_FromString(__pyx_v_sp->data() + __pyx_v_pos); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_6 = PyBytes_FromString(__pyx_v_sp->data() + __pyx_v_pos); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(((PyObject *)__pyx_t_6)); - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_6)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_resultlist), ((PyObject *)__pyx_t_6)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":745 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":753 * else: * resultlist.append(sp.data()[pos:]) * return (''.join(resultlist), num_repl) # <<<<<<<<<<<<<< @@ -8538,20 +8598,20 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P * del sp */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_kp_s_7), __pyx_n_s__join); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_kp_s_7), __pyx_n_s__join); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_6); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_v_resultlist)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_resultlist)); __Pyx_GIVEREF(((PyObject *)__pyx_v_resultlist)); - __pyx_t_3 = PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_3 = PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyInt_FromLong(__pyx_v_num_repl); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_1 = PyInt_FromLong(__pyx_v_num_repl); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L9;} + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L9;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); @@ -8566,7 +8626,7 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P __pyx_L21:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":747 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":755 * return (''.join(resultlist), num_repl) * finally: * del sp # <<<<<<<<<<<<<< @@ -8622,10 +8682,10 @@ static PyObject *__pyx_pf_3re2_7Pattern__subn_callback(PyObject *__pyx_v_self, P return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":754 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":762 * _MAXCACHE = 100 * - * def compile(pattern, int flags=0): # <<<<<<<<<<<<<< + * def compile(pattern, int flags=0, int max_mem=8388608): # <<<<<<<<<<<<<< * cachekey = (type(pattern),) + (pattern, flags) * p = _cache.get(cachekey) */ @@ -8634,6 +8694,7 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_pattern = 0; int __pyx_v_flags; + int __pyx_v_max_mem; PyObject *__pyx_v_cachekey; PyObject *__pyx_v_p; PyObject *__pyx_r = NULL; @@ -8641,14 +8702,16 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; - Py_ssize_t __pyx_t_5; - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__pattern,&__pyx_n_s__flags,0}; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__pattern,&__pyx_n_s__flags,&__pyx_n_s__max_mem,0}; __Pyx_RefNannySetupContext("compile"); __pyx_self = __pyx_self; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args = PyDict_Size(__pyx_kwds); - PyObject* values[2] = {0,0}; + PyObject* values[3] = {0,0,0}; switch (PyTuple_GET_SIZE(__pyx_args)) { + case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; @@ -8664,20 +8727,32 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__flags); if (value) { values[1] = value; kw_args--; } } + case 2: + if (kw_args > 0) { + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__max_mem); + if (value) { values[2] = value; kw_args--; } + } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "compile") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "compile") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; if (values[1]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } + if (values[2]) { + __pyx_v_max_mem = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_max_mem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + } else { + __pyx_v_max_mem = ((int)8388608); + } } else { __pyx_v_flags = ((int)0); + __pyx_v_max_mem = ((int)8388608); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 2: __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_max_mem = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_max_mem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -8685,7 +8760,7 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("compile", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("compile", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.compile"); __Pyx_RefNannyFinishContext(); @@ -8694,21 +8769,21 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg __pyx_v_cachekey = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_v_p = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":755 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":763 * - * def compile(pattern, int flags=0): + * def compile(pattern, int flags=0, int max_mem=8388608): * cachekey = (type(pattern),) + (pattern, flags) # <<<<<<<<<<<<<< * p = _cache.get(cachekey) * if p is not None: */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_pattern))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(__pyx_v_pattern))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_v_pattern))); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); @@ -8716,33 +8791,33 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (!(likely(PyTuple_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected tuple, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(PyTuple_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected tuple, got %.200s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_v_cachekey)); __pyx_v_cachekey = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":756 - * def compile(pattern, int flags=0): + /* "/home/axiak/Documents/pyre2/src/re2.pyx":764 + * def compile(pattern, int flags=0, int max_mem=8388608): * cachekey = (type(pattern),) + (pattern, flags) * p = _cache.get(cachekey) # <<<<<<<<<<<<<< * if p is not None: * return p */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_cachekey)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_cachekey)); __Pyx_GIVEREF(((PyObject *)__pyx_v_cachekey)); - __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -8750,21 +8825,21 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg __pyx_v_p = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":757 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":765 * cachekey = (type(pattern),) + (pattern, flags) * p = _cache.get(cachekey) * if p is not None: # <<<<<<<<<<<<<< * return p - * p = _compile(pattern, flags) + * p = _compile(pattern, flags, max_mem) */ __pyx_t_4 = (__pyx_v_p != Py_None); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":758 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":766 * p = _cache.get(cachekey) * if p is not None: * return p # <<<<<<<<<<<<<< - * p = _compile(pattern, flags) + * p = _compile(pattern, flags, max_mem) * */ __Pyx_XDECREF(__pyx_r); @@ -8775,89 +8850,94 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":759 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":767 * if p is not None: * return p - * p = _compile(pattern, flags) # <<<<<<<<<<<<<< + * p = _compile(pattern, flags, max_mem) # <<<<<<<<<<<<<< * * if len(_cache) >= _MAXCACHE: */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(__pyx_v_max_mem); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_pattern); - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3); + __Pyx_GIVEREF(__pyx_t_3); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = 0; + __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_v_p); - __pyx_v_p = __pyx_t_2; - __pyx_t_2 = 0; + __pyx_v_p = __pyx_t_3; + __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":761 - * p = _compile(pattern, flags) + /* "/home/axiak/Documents/pyre2/src/re2.pyx":769 + * p = _compile(pattern, flags, max_mem) * * if len(_cache) >= _MAXCACHE: # <<<<<<<<<<<<<< * _cache.clear() * _cache[cachekey] = p */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s___MAXCACHE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s___MAXCACHE); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_5, Py_GE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":762 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":770 * * if len(_cache) >= _MAXCACHE: * _cache.clear() # <<<<<<<<<<<<<< * _cache[cachekey] = p * return p */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__clear); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_5 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__clear); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L7; } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":763 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":771 * if len(_cache) >= _MAXCACHE: * _cache.clear() * _cache[cachekey] = p # <<<<<<<<<<<<<< * return p * */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s___cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - if (PyObject_SetItem(__pyx_t_1, ((PyObject *)__pyx_v_cachekey), __pyx_v_p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetItem(__pyx_t_1, ((PyObject *)__pyx_v_cachekey), __pyx_v_p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":764 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":772 * _cache.clear() * _cache[cachekey] = p * return p # <<<<<<<<<<<<<< @@ -8875,6 +8955,7 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("re2.compile"); __pyx_r = NULL; __pyx_L0:; @@ -8885,7 +8966,7 @@ static PyObject *__pyx_pf_3re2_compile(PyObject *__pyx_self, PyObject *__pyx_arg return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":772 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":780 * * class Tokenizer: * def __init__(self, string): # <<<<<<<<<<<<<< @@ -8922,11 +9003,11 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___init__(PyObject *__pyx_self, PyObjec values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_self = values[0]; __pyx_v_string = values[1]; @@ -8938,41 +9019,41 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___init__(PyObject *__pyx_self, PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.Tokenizer.__init__"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":773 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":781 * class Tokenizer: * def __init__(self, string): * self.string = string # <<<<<<<<<<<<<< * self.index = 0 * self.__next() */ - if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__string, __pyx_v_string) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__string, __pyx_v_string) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":774 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":782 * def __init__(self, string): * self.string = string * self.index = 0 # <<<<<<<<<<<<<< * self.__next() * def __next(self): */ - if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__index, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__index, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":775 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":783 * self.string = string * self.index = 0 * self.__next() # <<<<<<<<<<<<<< * def __next(self): * if self.index >= len(self.string): */ - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s____next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s____next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -8990,7 +9071,7 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___init__(PyObject *__pyx_self, PyObjec return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":776 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":784 * self.index = 0 * self.__next() * def __next(self): # <<<<<<<<<<<<<< @@ -9016,39 +9097,39 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __pyx_v_ch = Py_None; __Pyx_INCREF(Py_None); __pyx_v_c = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":777 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":785 * self.__next() * def __next(self): * if self.index >= len(self.string): # <<<<<<<<<<<<<< * self.next = None * return */ - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_GE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_GE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":778 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":786 * def __next(self): * if self.index >= len(self.string): * self.next = None # <<<<<<<<<<<<<< * return * ch = self.string[self.index] */ - if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__next, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__next, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":779 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":787 * if self.index >= len(self.string): * self.next = None * return # <<<<<<<<<<<<<< @@ -9062,18 +9143,18 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject } __pyx_L5:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":780 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":788 * self.next = None * return * ch = self.string[self.index] # <<<<<<<<<<<<<< * if ch[0] == "\\": * try: */ - __pyx_t_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyObject_GetItem(__pyx_t_4, __pyx_t_2); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetItem(__pyx_t_4, __pyx_t_2); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -9081,23 +9162,23 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __pyx_v_ch = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":781 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":789 * return * ch = self.string[self.index] * if ch[0] == "\\": # <<<<<<<<<<<<<< * try: * c = self.string[self.index + 1] */ - __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_ch, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_ch, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":782 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":790 * ch = self.string[self.index] * if ch[0] == "\\": * try: # <<<<<<<<<<<<<< @@ -9112,21 +9193,21 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __Pyx_XGOTREF(__pyx_save_exc_tb); /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":783 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":791 * if ch[0] == "\\": * try: * c = self.string[self.index + 1] # <<<<<<<<<<<<<< * except IndexError: * raise RegexError, "bogus escape (end of line)" */ - __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L7_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__string); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L7_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_int_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L7_error;} + __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_int_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_t_4); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L7_error;} + __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_t_4); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L7_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -9143,7 +9224,7 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":784 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":792 * try: * c = self.string[self.index + 1] * except IndexError: # <<<<<<<<<<<<<< @@ -9153,23 +9234,23 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_IndexError); if (__pyx_t_6) { __Pyx_AddTraceback("re2.Tokenizer.__next"); - if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} + if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_2); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":785 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":793 * c = self.string[self.index + 1] * except IndexError: * raise RegexError, "bogus escape (end of line)" # <<<<<<<<<<<<<< * ch = ch + c * self.index = self.index + len(ch) */ - __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} + __pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_Raise(__pyx_t_7, ((PyObject *)__pyx_kp_s_13), 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -9189,14 +9270,14 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject __pyx_L14_try_end:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":786 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":794 * except IndexError: * raise RegexError, "bogus escape (end of line)" * ch = ch + c # <<<<<<<<<<<<<< * self.index = self.index + len(ch) * self.next = ch */ - __pyx_t_2 = PyNumber_Add(__pyx_v_ch, __pyx_v_c); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(__pyx_v_ch, __pyx_v_c); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_ch); __pyx_v_ch = __pyx_t_2; @@ -9205,33 +9286,33 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":787 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":795 * raise RegexError, "bogus escape (end of line)" * ch = ch + c * self.index = self.index + len(ch) # <<<<<<<<<<<<<< * self.next = ch * def get(self): */ - __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Length(__pyx_v_ch); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Length(__pyx_v_ch); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__index, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__index, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":788 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":796 * ch = ch + c * self.index = self.index + len(ch) * self.next = ch # <<<<<<<<<<<<<< * def get(self): * this = self.next */ - if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__next, __pyx_v_ch) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_v_self, __pyx_n_s__next, __pyx_v_ch) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; @@ -9250,7 +9331,7 @@ static PyObject *__pyx_pf_3re2_9Tokenizer___next(PyObject *__pyx_self, PyObject return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":789 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":797 * self.index = self.index + len(ch) * self.next = ch * def get(self): # <<<<<<<<<<<<<< @@ -9269,34 +9350,34 @@ static PyObject *__pyx_pf_3re2_9Tokenizer_get(PyObject *__pyx_self, PyObject *__ __pyx_self = __pyx_self; __pyx_v_this = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":790 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":798 * self.next = ch * def get(self): * this = self.next # <<<<<<<<<<<<<< * self.__next() * return this */ - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_this); __pyx_v_this = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":791 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":799 * def get(self): * this = self.next * self.__next() # <<<<<<<<<<<<<< * return this * */ - __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s____next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s____next); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":792 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":800 * this = self.next * self.__next() * return this # <<<<<<<<<<<<<< @@ -9322,7 +9403,7 @@ static PyObject *__pyx_pf_3re2_9Tokenizer_get(PyObject *__pyx_self, PyObject *__ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":794 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":802 * return this * * def prepare_pattern(pattern, int flags): # <<<<<<<<<<<<<< @@ -9367,23 +9448,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__flags); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("prepare_pattern", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("prepare_pattern", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "prepare_pattern") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "prepare_pattern") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; - __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); - __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("prepare_pattern", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("prepare_pattern", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.prepare_pattern"); __Pyx_RefNannyFinishContext(); @@ -9393,21 +9474,21 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_v_new_pattern = ((PyObject *)Py_None); __Pyx_INCREF(Py_None); __pyx_v_this = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":795 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":803 * * def prepare_pattern(pattern, int flags): * source = Tokenizer(pattern) # <<<<<<<<<<<<<< * new_pattern = [] * */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Tokenizer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Tokenizer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __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; @@ -9415,20 +9496,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_v_source = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":796 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":804 * def prepare_pattern(pattern, int flags): * source = Tokenizer(pattern) * new_pattern = [] # <<<<<<<<<<<<<< * * cdef str strflags = '' */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); __Pyx_DECREF(((PyObject *)__pyx_v_new_pattern)); __pyx_v_new_pattern = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":798 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":806 * new_pattern = [] * * cdef str strflags = '' # <<<<<<<<<<<<<< @@ -9438,7 +9519,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __Pyx_INCREF(((PyObject *)__pyx_kp_s_7)); __pyx_v_strflags = __pyx_kp_s_7; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":799 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":807 * * cdef str strflags = '' * if flags & _S: # <<<<<<<<<<<<<< @@ -9448,16 +9529,16 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_4 = (__pyx_v_flags & __pyx_v_3re2__S); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":800 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":808 * cdef str strflags = '' * if flags & _S: * strflags += 's' # <<<<<<<<<<<<<< * if flags & _M: * strflags += 'm' */ - __pyx_t_3 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_strflags), ((PyObject *)__pyx_n_s__s)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_strflags), ((PyObject *)__pyx_n_s__s)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - if (!(likely(PyString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected str, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(PyString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected str, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_v_strflags)); __pyx_v_strflags = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; @@ -9465,7 +9546,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":801 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":809 * if flags & _S: * strflags += 's' * if flags & _M: # <<<<<<<<<<<<<< @@ -9475,16 +9556,16 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_4 = (__pyx_v_flags & __pyx_v_3re2__M); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":802 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":810 * strflags += 's' * if flags & _M: * strflags += 'm' # <<<<<<<<<<<<<< * * if strflags: */ - __pyx_t_3 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_strflags), ((PyObject *)__pyx_n_s__m)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_strflags), ((PyObject *)__pyx_n_s__m)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - if (!(likely(PyString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected str, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(PyString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected str, got %.200s", Py_TYPE(__pyx_t_3)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_v_strflags)); __pyx_v_strflags = ((PyObject *)__pyx_t_3); __pyx_t_3 = 0; @@ -9492,17 +9573,17 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":804 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":812 * strflags += 'm' * * if strflags: # <<<<<<<<<<<<<< * new_pattern.append('(?' + strflags + ')') * */ - __pyx_t_5 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_strflags)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_strflags)); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":805 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":813 * * if strflags: * new_pattern.append('(?' + strflags + ')') # <<<<<<<<<<<<<< @@ -9510,20 +9591,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * while 1: */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_3 = PyNumber_Add(((PyObject *)__pyx_kp_s_14), ((PyObject *)__pyx_v_strflags)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_Add(((PyObject *)__pyx_kp_s_14), ((PyObject *)__pyx_v_strflags)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_t_3), ((PyObject *)__pyx_kp_s_15)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_t_3), ((PyObject *)__pyx_kp_s_15)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_2)); __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_t_2)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_t_2)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0; goto __pyx_L8; } __pyx_L8:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":807 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":815 * new_pattern.append('(?' + strflags + ')') * * while 1: # <<<<<<<<<<<<<< @@ -9533,23 +9614,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":808 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":816 * * while 1: * this = source.get() # <<<<<<<<<<<<<< * if this is None: * break */ - __pyx_t_2 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_this); __pyx_v_this = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":809 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":817 * while 1: * this = source.get() * if this is None: # <<<<<<<<<<<<<< @@ -9559,7 +9640,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_5 = (__pyx_v_this == Py_None); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":810 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":818 * this = source.get() * if this is None: * break # <<<<<<<<<<<<<< @@ -9571,7 +9652,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L11:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":811 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":819 * if this is None: * break * if flags & _X: # <<<<<<<<<<<<<< @@ -9581,20 +9662,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_4 = (__pyx_v_flags & __pyx_v_3re2__X); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":812 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":820 * break * if flags & _X: * if this in WHITESPACE: # <<<<<<<<<<<<<< * continue * if this == "#": */ - __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__WHITESPACE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__WHITESPACE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = ((PySequence_Contains(__pyx_t_3, __pyx_v_this))); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = ((PySequence_Contains(__pyx_t_3, __pyx_v_this))); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":813 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":821 * if flags & _X: * if this in WHITESPACE: * continue # <<<<<<<<<<<<<< @@ -9606,20 +9687,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L13:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":814 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":822 * if this in WHITESPACE: * continue * if this == "#": # <<<<<<<<<<<<<< * while 1: * this = source.get() */ - __pyx_t_3 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_16), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_16), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":815 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":823 * continue * if this == "#": * while 1: # <<<<<<<<<<<<<< @@ -9629,23 +9710,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":816 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":824 * if this == "#": * while 1: * this = source.get() # <<<<<<<<<<<<<< * if this in (None, "\n"): * break */ - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_v_this); __pyx_v_this = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":817 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":825 * while 1: * this = source.get() * if this in (None, "\n"): # <<<<<<<<<<<<<< @@ -9654,15 +9735,15 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ */ __Pyx_INCREF(__pyx_v_this); __pyx_t_2 = __pyx_v_this; - __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, Py_None, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, Py_None, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = __pyx_t_5; if (!__pyx_t_6) { - __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_kp_s_10), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_kp_s_10), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __pyx_t_5; __pyx_t_5 = __pyx_t_7; @@ -9673,7 +9754,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_6 = __pyx_t_5; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":818 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":826 * this = source.get() * if this in (None, "\n"): * break # <<<<<<<<<<<<<< @@ -9687,7 +9768,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L16_break:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":819 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":827 * if this in (None, "\n"): * break * continue # <<<<<<<<<<<<<< @@ -9702,20 +9783,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L12:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":821 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":829 * continue * * if this[0] not in '[\\': # <<<<<<<<<<<<<< * new_pattern.append(this) * continue */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = (__Pyx_NegateNonNeg(PySequence_Contains(((PyObject *)__pyx_kp_s_17), __pyx_t_2))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = (__Pyx_NegateNonNeg(PySequence_Contains(((PyObject *)__pyx_kp_s_17), __pyx_t_2))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":822 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":830 * * if this[0] not in '[\\': * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -9723,11 +9804,11 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":823 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":831 * if this[0] not in '[\\': * new_pattern.append(this) * continue # <<<<<<<<<<<<<< @@ -9738,20 +9819,20 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ goto __pyx_L18; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":825 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":833 * continue * * elif this == '[': # <<<<<<<<<<<<<< * new_pattern.append(this) * while 1: */ - __pyx_t_2 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_18), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_18), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":826 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":834 * * elif this == '[': * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -9759,11 +9840,11 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * this = source.get() */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":827 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":835 * elif this == '[': * new_pattern.append(this) * while 1: # <<<<<<<<<<<<<< @@ -9773,23 +9854,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ while (1) { if (!1) break; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":828 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":836 * new_pattern.append(this) * while 1: * this = source.get() # <<<<<<<<<<<<<< * if this is None: * raise RegexError, "unexpected end of regular expression" */ - __pyx_t_2 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_this); __pyx_v_this = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":829 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":837 * while 1: * this = source.get() * if this is None: # <<<<<<<<<<<<<< @@ -9799,35 +9880,35 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_6 = (__pyx_v_this == Py_None); if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":830 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":838 * this = source.get() * if this is None: * raise RegexError, "unexpected end of regular expression" # <<<<<<<<<<<<<< * elif this == ']': * new_pattern.append(this) */ - __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, ((PyObject *)__pyx_kp_s_19), 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L21; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":831 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":839 * if this is None: * raise RegexError, "unexpected end of regular expression" * elif this == ']': # <<<<<<<<<<<<<< * new_pattern.append(this) * break */ - __pyx_t_3 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_20), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_v_this, ((PyObject *)__pyx_kp_s_20), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":832 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":840 * raise RegexError, "unexpected end of regular expression" * elif this == ']': * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -9835,11 +9916,11 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * elif this[0] == '\\': */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":833 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":841 * elif this == ']': * new_pattern.append(this) * break # <<<<<<<<<<<<<< @@ -9850,23 +9931,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ goto __pyx_L21; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":834 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":842 * new_pattern.append(this) * break * elif this[0] == '\\': # <<<<<<<<<<<<<< * if flags & _U: * if this[1] == 'd': */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":835 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":843 * break * elif this[0] == '\\': * if flags & _U: # <<<<<<<<<<<<<< @@ -9876,23 +9957,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_4 = (__pyx_v_flags & __pyx_v_3re2__U); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":836 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":844 * elif this[0] == '\\': * if flags & _U: * if this[1] == 'd': # <<<<<<<<<<<<<< * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__d), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__d), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":837 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":845 * if flags & _U: * if this[1] == 'd': * new_pattern.append(r'\p{Nd}') # <<<<<<<<<<<<<< @@ -9900,29 +9981,29 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(r'_\p{L}\p{Nd}') */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_21)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_21)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L23; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":838 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":846 * if this[1] == 'd': * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': # <<<<<<<<<<<<<< * new_pattern.append(r'_\p{L}\p{Nd}') * elif this[1] == 's': */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__w), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__w), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":839 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":847 * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': * new_pattern.append(r'_\p{L}\p{Nd}') # <<<<<<<<<<<<<< @@ -9930,29 +10011,29 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(r'\s\p{Z}') */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_22)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_22)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L23; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":840 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":848 * elif this[1] == 'w': * new_pattern.append(r'_\p{L}\p{Nd}') * elif this[1] == 's': # <<<<<<<<<<<<<< * new_pattern.append(r'\s\p{Z}') * else: */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__s), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__s), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":841 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":849 * new_pattern.append(r'_\p{L}\p{Nd}') * elif this[1] == 's': * new_pattern.append(r'\s\p{Z}') # <<<<<<<<<<<<<< @@ -9960,14 +10041,14 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(this) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_23)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_23)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L23; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":843 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":851 * new_pattern.append(r'\s\p{Z}') * else: * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -9975,16 +10056,16 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(this) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L23:; goto __pyx_L22; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":845 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":853 * new_pattern.append(this) * else: * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -9992,16 +10073,16 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(this) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L22:; goto __pyx_L21; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":847 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":855 * new_pattern.append(this) * else: * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -10009,9 +10090,9 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * if this[1] in '89': */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L21:; } @@ -10019,81 +10100,81 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ goto __pyx_L18; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":848 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":856 * else: * new_pattern.append(this) * elif this[0] == '\\': # <<<<<<<<<<<<<< * if this[1] in '89': * raise BackreferencesException() */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":849 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":857 * new_pattern.append(this) * elif this[0] == '\\': * if this[1] in '89': # <<<<<<<<<<<<<< * raise BackreferencesException() * elif this[1] in '1234567': */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__89), __pyx_t_2))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__89), __pyx_t_2))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":850 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":858 * elif this[0] == '\\': * if this[1] in '89': * raise BackreferencesException() # <<<<<<<<<<<<<< * elif this[1] in '1234567': * if source.next and source.next in '1234567': */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L24; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":851 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":859 * if this[1] in '89': * raise BackreferencesException() * elif this[1] in '1234567': # <<<<<<<<<<<<<< * if source.next and source.next in '1234567': * this += source.get() */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_6) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":852 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":860 * raise BackreferencesException() * elif this[1] in '1234567': * if source.next and source.next in '1234567': # <<<<<<<<<<<<<< * this += source.get() * if source.next and source.next in '1234567': */ - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_6) { - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_7 = __pyx_t_5; } else { @@ -10101,40 +10182,40 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } if (__pyx_t_7) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":853 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":861 * elif this[1] in '1234567': * if source.next and source.next in '1234567': * this += source.get() # <<<<<<<<<<<<<< * if source.next and source.next in '1234567': * # all clear, this is an octal escape */ - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__get); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_this, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_this, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_v_this); __pyx_v_this = __pyx_t_3; __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":854 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":862 * if source.next and source.next in '1234567': * this += source.get() * if source.next and source.next in '1234567': # <<<<<<<<<<<<<< * # all clear, this is an octal escape * new_pattern.append(this) */ - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_7) { - __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_v_source, __pyx_n_s__next); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = ((PySequence_Contains(((PyObject *)__pyx_kp_s__1234567), __pyx_t_3))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_5 = __pyx_t_6; } else { @@ -10142,7 +10223,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":856 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":864 * if source.next and source.next in '1234567': * # all clear, this is an octal escape * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -10150,55 +10231,55 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * raise BackreferencesException() */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L26; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":858 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":866 * new_pattern.append(this) * else: * raise BackreferencesException() # <<<<<<<<<<<<<< * else: * raise BackreferencesException() */ - __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L26:; goto __pyx_L25; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":860 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":868 * raise BackreferencesException() * else: * raise BackreferencesException() # <<<<<<<<<<<<<< * elif flags & _U: * if this[1] == 'd': */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L25:; goto __pyx_L24; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":861 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":869 * else: * raise BackreferencesException() * elif flags & _U: # <<<<<<<<<<<<<< @@ -10208,23 +10289,23 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ __pyx_t_4 = (__pyx_v_flags & __pyx_v_3re2__U); if (__pyx_t_4) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":862 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":870 * raise BackreferencesException() * elif flags & _U: * if this[1] == 'd': # <<<<<<<<<<<<<< * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__d), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__d), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":863 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":871 * elif flags & _U: * if this[1] == 'd': * new_pattern.append(r'\p{Nd}') # <<<<<<<<<<<<<< @@ -10232,29 +10313,29 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(r'[_\p{L}\p{Nd}]') */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_21)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_21)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L27; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":864 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":872 * if this[1] == 'd': * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': # <<<<<<<<<<<<<< * new_pattern.append(r'[_\p{L}\p{Nd}]') * elif this[1] == 's': */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__w), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_n_s__w), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":865 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":873 * new_pattern.append(r'\p{Nd}') * elif this[1] == 'w': * new_pattern.append(r'[_\p{L}\p{Nd}]') # <<<<<<<<<<<<<< @@ -10262,29 +10343,29 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(r'[\s\p{Z}]') */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_25)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_25)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L27; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":866 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":874 * elif this[1] == 'w': * new_pattern.append(r'[_\p{L}\p{Nd}]') * elif this[1] == 's': # <<<<<<<<<<<<<< * new_pattern.append(r'[\s\p{Z}]') * else: */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_this, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__s), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_n_s__s), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":867 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":875 * new_pattern.append(r'[_\p{L}\p{Nd}]') * elif this[1] == 's': * new_pattern.append(r'[\s\p{Z}]') # <<<<<<<<<<<<<< @@ -10292,14 +10373,14 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(this) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_26)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), ((PyObject *)__pyx_kp_s_26)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L27; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":869 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":877 * new_pattern.append(r'[\s\p{Z}]') * else: * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -10307,16 +10388,16 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * new_pattern.append(this) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L27:; goto __pyx_L24; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":871 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":879 * new_pattern.append(this) * else: * new_pattern.append(this) # <<<<<<<<<<<<<< @@ -10324,9 +10405,9 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * return ''.join(new_pattern) */ if (unlikely(__pyx_v_new_pattern == Py_None)) { - PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_new_pattern), __pyx_v_this); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } __pyx_L24:; goto __pyx_L18; @@ -10336,7 +10417,7 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ } __pyx_L10_break:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":873 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":881 * new_pattern.append(this) * * return ''.join(new_pattern) # <<<<<<<<<<<<<< @@ -10344,14 +10425,14 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_kp_s_7), __pyx_n_s__join); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_kp_s_7), __pyx_n_s__join); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(((PyObject *)__pyx_v_new_pattern)); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_new_pattern)); __Pyx_GIVEREF(((PyObject *)__pyx_v_new_pattern)); - __pyx_t_1 = PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -10377,10 +10458,10 @@ static PyObject *__pyx_pf_3re2_prepare_pattern(PyObject *__pyx_self, PyObject *_ return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":877 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":885 * * - * def _compile(pattern, int flags=0): # <<<<<<<<<<<<<< + * def _compile(pattern, int flags=0, int max_mem=8388608): # <<<<<<<<<<<<<< * """ * Compile a regular expression pattern, returning a pattern object. */ @@ -10390,6 +10471,7 @@ static char __pyx_doc_3re2__compile[] = "\n Compile a regular expression patt static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_pattern = 0; int __pyx_v_flags; + int __pyx_v_max_mem; char *__pyx_v_string; Py_ssize_t __pyx_v_length; re2::StringPiece *__pyx_v_s; @@ -10411,13 +10493,14 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__pattern,&__pyx_n_s__flags,0}; + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__pattern,&__pyx_n_s__flags,&__pyx_n_s__max_mem,0}; __Pyx_RefNannySetupContext("_compile"); __pyx_self = __pyx_self; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args = PyDict_Size(__pyx_kwds); - PyObject* values[2] = {0,0}; + PyObject* values[3] = {0,0,0}; switch (PyTuple_GET_SIZE(__pyx_args)) { + case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 0: break; @@ -10433,20 +10516,32 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__flags); if (value) { values[1] = value; kw_args--; } } + case 2: + if (kw_args > 0) { + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__max_mem); + if (value) { values[2] = value; kw_args--; } + } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "_compile") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "_compile") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; if (values[1]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } + if (values[2]) { + __pyx_v_max_mem = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_max_mem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + } else { + __pyx_v_max_mem = ((int)8388608); + } } else { __pyx_v_flags = ((int)0); + __pyx_v_max_mem = ((int)8388608); switch (PyTuple_GET_SIZE(__pyx_args)) { - case 2: __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 3: __pyx_v_max_mem = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_max_mem == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + case 2: __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 1: __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; @@ -10454,7 +10549,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_compile", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("_compile", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2._compile"); __Pyx_RefNannyFinishContext(); @@ -10463,7 +10558,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_INCREF(__pyx_v_pattern); __pyx_v_error_msg = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":886 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":894 * cdef _re2.Options opts * cdef int error_code * cdef int encoded = 0 # <<<<<<<<<<<<<< @@ -10472,16 +10567,16 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_encoded = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":888 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":896 * cdef int encoded = 0 * * if isinstance(pattern, (Pattern, SREPattern)): # <<<<<<<<<<<<<< * if flags: * raise ValueError('Cannot process flags argument with a compiled pattern') */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__SREPattern); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__SREPattern); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_3re2_Pattern))); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)((PyObject*)__pyx_ptype_3re2_Pattern))); @@ -10489,11 +10584,11 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = PyObject_IsInstance(__pyx_v_pattern, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_IsInstance(__pyx_v_pattern, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":889 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":897 * * if isinstance(pattern, (Pattern, SREPattern)): * if flags: # <<<<<<<<<<<<<< @@ -10502,29 +10597,29 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ if (__pyx_v_flags) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":890 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":898 * if isinstance(pattern, (Pattern, SREPattern)): * if flags: * raise ValueError('Cannot process flags argument with a compiled pattern') # <<<<<<<<<<<<<< * return pattern * */ - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_kp_s_27)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_27)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_27)); - __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L7; } __pyx_L7:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":891 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":899 * if flags: * raise ValueError('Cannot process flags argument with a compiled pattern') * return pattern # <<<<<<<<<<<<<< @@ -10539,7 +10634,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } __pyx_L6:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":893 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":901 * return pattern * * cdef object original_pattern = pattern # <<<<<<<<<<<<<< @@ -10549,7 +10644,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_INCREF(__pyx_v_pattern); __pyx_v_original_pattern = __pyx_v_pattern; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":894 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":902 * * cdef object original_pattern = pattern * try: # <<<<<<<<<<<<<< @@ -10564,18 +10659,18 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_XGOTREF(__pyx_save_exc_tb); /*try:*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":895 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":903 * cdef object original_pattern = pattern * try: * pattern = prepare_pattern(original_pattern, flags) # <<<<<<<<<<<<<< * except BackreferencesException: * error_msg = "Backreferences not supported" */ - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__prepare_pattern); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L8_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__prepare_pattern); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L8_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L8_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L8_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L8_error;} + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L8_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_original_pattern); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_original_pattern); @@ -10583,7 +10678,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L8_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L8_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -10600,25 +10695,25 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":896 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":904 * try: * pattern = prepare_pattern(original_pattern, flags) * except BackreferencesException: # <<<<<<<<<<<<<< * error_msg = "Backreferences not supported" * if current_notification == FALLBACK_EXCEPTION: */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyErr_ExceptionMatches(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_5) { __Pyx_AddTraceback("re2._compile"); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":897 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":905 * pattern = prepare_pattern(original_pattern, flags) * except BackreferencesException: * error_msg = "Backreferences not supported" # <<<<<<<<<<<<<< @@ -10629,78 +10724,78 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_DECREF(__pyx_v_error_msg); __pyx_v_error_msg = ((PyObject *)__pyx_kp_s_28); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":898 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":906 * except BackreferencesException: * error_msg = "Backreferences not supported" * if current_notification == FALLBACK_EXCEPTION: # <<<<<<<<<<<<<< * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) */ - __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_EXCEPTION); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_EXCEPTION); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 906; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_6); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_6); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 906; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (__pyx_v_3re2_current_notification == __pyx_t_5); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":900 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":908 * if current_notification == FALLBACK_EXCEPTION: * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) # <<<<<<<<<<<<<< * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) */ - __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_v_error_msg); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_error_msg); __Pyx_GIVEREF(__pyx_v_error_msg); - __pyx_t_8 = PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_8, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} goto __pyx_L18; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":901 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":909 * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) * elif current_notification == FALLBACK_WARNING: # <<<<<<<<<<<<<< * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) * return re.compile(original_pattern, flags) */ - __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_WARNING); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_WARNING); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); - __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_8); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_8); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_3 = (__pyx_v_3re2_current_notification == __pyx_t_5); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":902 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":910 * raise RegexError(error_msg) * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) # <<<<<<<<<<<<<< * return re.compile(original_pattern, flags) * */ - __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); - __pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__warn); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__warn); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_29), __pyx_v_error_msg); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_29), __pyx_v_error_msg); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_8)); - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_8)); __Pyx_GIVEREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0; - __pyx_t_8 = PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = PyObject_Call(__pyx_t_7, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -10709,7 +10804,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } __pyx_L18:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":903 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":911 * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) * return re.compile(original_pattern, flags) # <<<<<<<<<<<<<< @@ -10717,14 +10812,14 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar * # Set the options given the flags above. */ __Pyx_XDECREF(__pyx_r); - __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__compile); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_6 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__compile); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_v_original_pattern); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_original_pattern); @@ -10732,7 +10827,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8); __Pyx_GIVEREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} + __pyx_t_8 = PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -10767,7 +10862,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_L15_try_end:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":906 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":914 * * # Set the options given the flags above. * if flags & _I: # <<<<<<<<<<<<<< @@ -10777,29 +10872,38 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_t_5 = (__pyx_v_flags & __pyx_v_3re2__I); if (__pyx_t_5) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":907 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":915 * # Set the options given the flags above. * if flags & _I: * opts.set_case_sensitive(0); # <<<<<<<<<<<<<< * - * opts.set_log_errors(0) + * opts.set_max_mem(max_mem) */ __pyx_v_opts.set_case_sensitive(0); goto __pyx_L19; } __pyx_L19:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":909 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":917 * opts.set_case_sensitive(0); * + * opts.set_max_mem(max_mem) # <<<<<<<<<<<<<< + * opts.set_log_errors(0) + * opts.set_encoding(_re2.EncodingUTF8) + */ + __pyx_v_opts.set_max_mem(__pyx_v_max_mem); + + /* "/home/axiak/Documents/pyre2/src/re2.pyx":918 + * + * opts.set_max_mem(max_mem) * opts.set_log_errors(0) # <<<<<<<<<<<<<< * opts.set_encoding(_re2.EncodingUTF8) * */ __pyx_v_opts.set_log_errors(0); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":910 - * + /* "/home/axiak/Documents/pyre2/src/re2.pyx":919 + * opts.set_max_mem(max_mem) * opts.set_log_errors(0) * opts.set_encoding(_re2.EncodingUTF8) # <<<<<<<<<<<<<< * @@ -10807,20 +10911,20 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_opts.set_encoding(RE2::Options::EncodingUTF8); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":914 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":923 * # We use this function to get the proper length of the string. * * pattern = unicode_to_bytestring(pattern, &encoded) # <<<<<<<<<<<<<< * if pystring_to_bytestring(pattern, &string, &length) == -1: * raise TypeError("first argument must be a string or compiled pattern") */ - __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_pattern, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 914; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_3re2_unicode_to_bytestring(__pyx_v_pattern, (&__pyx_v_encoded)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_v_pattern); __pyx_v_pattern = __pyx_t_1; __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":915 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":924 * * pattern = unicode_to_bytestring(pattern, &encoded) * if pystring_to_bytestring(pattern, &string, &length) == -1: # <<<<<<<<<<<<<< @@ -10830,29 +10934,29 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_t_3 = (__pyx_f_3re2_pystring_to_bytestring(__pyx_v_pattern, (&__pyx_v_string), (&__pyx_v_length)) == -1); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":916 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":925 * pattern = unicode_to_bytestring(pattern, &encoded) * if pystring_to_bytestring(pattern, &string, &length) == -1: * raise TypeError("first argument must be a string or compiled pattern") # <<<<<<<<<<<<<< * * s = new _re2.StringPiece(string, length) */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_30)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_30)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_30)); - __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L20; } __pyx_L20:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":918 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":927 * raise TypeError("first argument must be a string or compiled pattern") * * s = new _re2.StringPiece(string, length) # <<<<<<<<<<<<<< @@ -10861,7 +10965,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_s = new re2::StringPiece(__pyx_v_string, __pyx_v_length); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":920 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":929 * s = new _re2.StringPiece(string, length) * * cdef _re2.RE2 * re_pattern = new _re2.RE2(s[0], opts) # <<<<<<<<<<<<<< @@ -10870,7 +10974,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_re_pattern = new re2::RE2((__pyx_v_s[0]), __pyx_v_opts); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":921 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":930 * * cdef _re2.RE2 * re_pattern = new _re2.RE2(s[0], opts) * if not re_pattern.ok(): # <<<<<<<<<<<<<< @@ -10880,7 +10984,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_t_3 = (!__pyx_v_re_pattern->ok()); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":923 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":932 * if not re_pattern.ok(): * # Something went wrong with the compilation. * del s # <<<<<<<<<<<<<< @@ -10889,20 +10993,20 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ delete __pyx_v_s; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":924 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":933 * # Something went wrong with the compilation. * del s * error_msg = cpp_to_pystring(re_pattern.error()) # <<<<<<<<<<<<<< * error_code = re_pattern.error_code() * del re_pattern */ - __pyx_t_4 = __pyx_f_3re2_cpp_to_pystring(__pyx_v_re_pattern->error()); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __pyx_f_3re2_cpp_to_pystring(__pyx_v_re_pattern->error()); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_v_error_msg); __pyx_v_error_msg = __pyx_t_4; __pyx_t_4 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":925 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":934 * del s * error_msg = cpp_to_pystring(re_pattern.error()) * error_code = re_pattern.error_code() # <<<<<<<<<<<<<< @@ -10911,7 +11015,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_error_code = __pyx_v_re_pattern->error_code(); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":926 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":935 * error_msg = cpp_to_pystring(re_pattern.error()) * error_code = re_pattern.error_code() * del re_pattern # <<<<<<<<<<<<<< @@ -10920,45 +11024,45 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ delete __pyx_v_re_pattern; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":927 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":936 * error_code = re_pattern.error_code() * del re_pattern * if current_notification == FALLBACK_EXCEPTION: # <<<<<<<<<<<<<< * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) */ - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_EXCEPTION); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 927; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_EXCEPTION); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 927; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_v_3re2_current_notification == __pyx_t_5); if (__pyx_t_3) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":929 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":938 * if current_notification == FALLBACK_EXCEPTION: * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) # <<<<<<<<<<<<<< * elif error_code not in (_re2.ErrorBadPerlOp, _re2.ErrorRepeatSize, * _re2.ErrorBadEscape): */ - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_error_msg); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_error_msg); __Pyx_GIVEREF(__pyx_v_error_msg); - __pyx_t_2 = PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_2, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L22; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":930 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":939 * # Raise an exception regardless of the type of error. * raise RegexError(error_msg) * elif error_code not in (_re2.ErrorBadPerlOp, _re2.ErrorRepeatSize, # <<<<<<<<<<<<<< @@ -10975,7 +11079,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } if (__pyx_t_10) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":931 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":940 * raise RegexError(error_msg) * elif error_code not in (_re2.ErrorBadPerlOp, _re2.ErrorRepeatSize, * _re2.ErrorBadEscape): # <<<<<<<<<<<<<< @@ -10990,64 +11094,64 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_t_10 = __pyx_t_9; if (__pyx_t_10) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":934 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":943 * # Raise an error because these will not be fixed by using the * # ``re`` module. * raise RegexError(error_msg) # <<<<<<<<<<<<<< * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__RegexError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_error_msg); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_error_msg); __Pyx_GIVEREF(__pyx_v_error_msg); - __pyx_t_4 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L22; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":935 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":944 * # ``re`` module. * raise RegexError(error_msg) * elif current_notification == FALLBACK_WARNING: # <<<<<<<<<<<<<< * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) * return re.compile(original_pattern, flags) */ - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_WARNING); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__FALLBACK_WARNING); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_4); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_10 = (__pyx_v_3re2_current_notification == __pyx_t_5); if (__pyx_t_10) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":936 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":945 * raise RegexError(error_msg) * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) # <<<<<<<<<<<<<< * return re.compile(original_pattern, flags) * */ - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__warn); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__warn); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_29), __pyx_v_error_msg); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_29), __pyx_v_error_msg); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_4)); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_t_4)); __Pyx_GIVEREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0; - __pyx_t_4 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -11056,7 +11160,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } __pyx_L22:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":937 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":946 * elif current_notification == FALLBACK_WARNING: * warnings.warn("WARNING: Using re module. Reason: %s" % error_msg) * return re.compile(original_pattern, flags) # <<<<<<<<<<<<<< @@ -11064,14 +11168,14 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar * cdef Pattern pypattern = Pattern() */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_original_pattern); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_original_pattern); @@ -11079,7 +11183,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4); __Pyx_GIVEREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -11090,19 +11194,19 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar } __pyx_L21:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":939 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":948 * return re.compile(original_pattern, flags) * * cdef Pattern pypattern = Pattern() # <<<<<<<<<<<<<< * pypattern.pattern = original_pattern * pypattern.re_pattern = re_pattern */ - __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Pattern)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 939; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_3re2_Pattern)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_v_pypattern = ((struct __pyx_obj_3re2_Pattern *)__pyx_t_4); __pyx_t_4 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":940 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":949 * * cdef Pattern pypattern = Pattern() * pypattern.pattern = original_pattern # <<<<<<<<<<<<<< @@ -11115,7 +11219,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar __Pyx_DECREF(__pyx_v_pypattern->pattern); __pyx_v_pypattern->pattern = __pyx_v_original_pattern; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":941 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":950 * cdef Pattern pypattern = Pattern() * pypattern.pattern = original_pattern * pypattern.re_pattern = re_pattern # <<<<<<<<<<<<<< @@ -11124,7 +11228,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_pypattern->re_pattern = __pyx_v_re_pattern; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":942 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":951 * pypattern.pattern = original_pattern * pypattern.re_pattern = re_pattern * pypattern.ngroups = re_pattern.NumberOfCapturingGroups() # <<<<<<<<<<<<<< @@ -11133,7 +11237,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_pypattern->ngroups = __pyx_v_re_pattern->NumberOfCapturingGroups(); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":943 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":952 * pypattern.re_pattern = re_pattern * pypattern.ngroups = re_pattern.NumberOfCapturingGroups() * pypattern.encoded = encoded # <<<<<<<<<<<<<< @@ -11142,7 +11246,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_pypattern->encoded = ((int)__pyx_v_encoded); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":944 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":953 * pypattern.ngroups = re_pattern.NumberOfCapturingGroups() * pypattern.encoded = encoded * pypattern._flags = flags # <<<<<<<<<<<<<< @@ -11151,7 +11255,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ __pyx_v_pypattern->_flags = __pyx_v_flags; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":945 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":954 * pypattern.encoded = encoded * pypattern._flags = flags * del s # <<<<<<<<<<<<<< @@ -11160,7 +11264,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar */ delete __pyx_v_s; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":946 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":955 * pypattern._flags = flags * del s * return pypattern # <<<<<<<<<<<<<< @@ -11193,7 +11297,7 @@ static PyObject *__pyx_pf_3re2__compile(PyObject *__pyx_self, PyObject *__pyx_ar return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":948 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":957 * return pypattern * * def search(pattern, string, int flags=0): # <<<<<<<<<<<<<< @@ -11233,7 +11337,7 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("search", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("search", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -11242,12 +11346,12 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "search") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "search") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } @@ -11255,7 +11359,7 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args __pyx_v_flags = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); @@ -11265,14 +11369,14 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("search", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("search", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.search"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":953 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":962 * a match object or none if no match was found. * """ * return compile(pattern, flags).search(string) # <<<<<<<<<<<<<< @@ -11280,11 +11384,11 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args * def match(pattern, string, int flags=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); @@ -11292,19 +11396,19 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__search); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__search); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_string); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_string); __Pyx_GIVEREF(__pyx_v_string); - __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -11326,7 +11430,7 @@ static PyObject *__pyx_pf_3re2_search(PyObject *__pyx_self, PyObject *__pyx_args return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":955 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":964 * return compile(pattern, flags).search(string) * * def match(pattern, string, int flags=0): # <<<<<<<<<<<<<< @@ -11366,7 +11470,7 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("match", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("match", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -11375,12 +11479,12 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "match") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "match") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } @@ -11388,7 +11492,7 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, __pyx_v_flags = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); @@ -11398,14 +11502,14 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("match", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("match", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.match"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":960 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":969 * a match object, or None if no match was found. * """ * return compile(pattern, flags).match(string) # <<<<<<<<<<<<<< @@ -11413,11 +11517,11 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, * def finditer(pattern, string, int flags=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); @@ -11425,19 +11529,19 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__match); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__match); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_string); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_string); __Pyx_GIVEREF(__pyx_v_string); - __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -11459,7 +11563,7 @@ static PyObject *__pyx_pf_3re2_match(PyObject *__pyx_self, PyObject *__pyx_args, return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":962 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":971 * return compile(pattern, flags).match(string) * * def finditer(pattern, string, int flags=0): # <<<<<<<<<<<<<< @@ -11499,7 +11603,7 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("finditer", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("finditer", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -11508,12 +11612,12 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "finditer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "finditer") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } @@ -11521,7 +11625,7 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar __pyx_v_flags = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); @@ -11531,14 +11635,14 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("finditer", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("finditer", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.finditer"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":969 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":978 * Empty matches are included in the result. * """ * return compile(pattern, flags).finditer(string) # <<<<<<<<<<<<<< @@ -11546,11 +11650,11 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar * def findall(pattern, string, int flags=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); @@ -11558,19 +11662,19 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__finditer); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__finditer); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_string); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_string); __Pyx_GIVEREF(__pyx_v_string); - __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -11592,7 +11696,7 @@ static PyObject *__pyx_pf_3re2_finditer(PyObject *__pyx_self, PyObject *__pyx_ar return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":971 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":980 * return compile(pattern, flags).finditer(string) * * def findall(pattern, string, int flags=0): # <<<<<<<<<<<<<< @@ -11632,7 +11736,7 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("findall", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("findall", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -11641,12 +11745,12 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findall") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findall") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_flags = ((int)0); } @@ -11654,7 +11758,7 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg __pyx_v_flags = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_flags = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); @@ -11664,14 +11768,14 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("findall", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("findall", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.findall"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":978 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":987 * Empty matches are included in the result. * """ * return compile(pattern, flags).findall(string) # <<<<<<<<<<<<<< @@ -11679,11 +11783,11 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg * def split(pattern, string, int maxsplit=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyInt_FromLong(__pyx_v_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_pattern); @@ -11691,19 +11795,19 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__findall); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__findall); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_string); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_string); __Pyx_GIVEREF(__pyx_v_string); - __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -11725,7 +11829,7 @@ static PyObject *__pyx_pf_3re2_findall(PyObject *__pyx_self, PyObject *__pyx_arg return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":980 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":989 * return compile(pattern, flags).findall(string) * * def split(pattern, string, int maxsplit=0): # <<<<<<<<<<<<<< @@ -11765,7 +11869,7 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("split", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("split", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: if (kw_args > 0) { @@ -11774,12 +11878,12 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "split") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "split") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_string = values[1]; if (values[2]) { - __pyx_v_maxsplit = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_maxsplit = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_maxsplit = ((int)0); } @@ -11787,7 +11891,7 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, __pyx_v_maxsplit = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: - __pyx_v_maxsplit = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_maxsplit = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_maxsplit == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 2: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 1); __pyx_v_pattern = PyTuple_GET_ITEM(__pyx_args, 0); @@ -11797,14 +11901,14 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("split", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("split", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.split"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":985 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":994 * returning a list containing the resulting substrings. * """ * return compile(pattern).split(string, maxsplit) # <<<<<<<<<<<<<< @@ -11812,23 +11916,23 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, * def sub(pattern, repl, string, int count=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __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; - __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyInt_FromLong(__pyx_v_maxsplit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(__pyx_v_maxsplit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_string); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_string); @@ -11836,7 +11940,7 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -11858,7 +11962,7 @@ static PyObject *__pyx_pf_3re2_split(PyObject *__pyx_self, PyObject *__pyx_args, return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":987 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":996 * return compile(pattern).split(string, maxsplit) * * def sub(pattern, repl, string, int count=0): # <<<<<<<<<<<<<< @@ -11900,13 +12004,13 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__repl); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[2])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 3: if (kw_args > 0) { @@ -11915,13 +12019,13 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sub") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "sub") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_repl = values[1]; __pyx_v_string = values[2]; if (values[3]) { - __pyx_v_count = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_count = ((int)0); } @@ -11929,7 +12033,7 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P __pyx_v_count = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: - __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 3: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 2); __pyx_v_repl = PyTuple_GET_ITEM(__pyx_args, 1); @@ -11940,14 +12044,14 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("sub", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.sub"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":996 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1005 * a replacement string to be used. * """ * return compile(pattern).sub(repl, string, count) # <<<<<<<<<<<<<< @@ -11955,23 +12059,23 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P * def subn(pattern, repl, string, int count=0): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __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; - __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__sub); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__sub); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_repl); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_repl); @@ -11982,7 +12086,7 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -12004,7 +12108,7 @@ static PyObject *__pyx_pf_3re2_sub(PyObject *__pyx_self, PyObject *__pyx_args, P return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":998 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":1007 * return compile(pattern).sub(repl, string, count) * * def subn(pattern, repl, string, int count=0): # <<<<<<<<<<<<<< @@ -12046,13 +12150,13 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__repl); if (likely(values[1])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 2: values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__string); if (likely(values[2])) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } case 3: if (kw_args > 0) { @@ -12061,13 +12165,13 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "subn") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "subn") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } __pyx_v_pattern = values[0]; __pyx_v_repl = values[1]; __pyx_v_string = values[2]; if (values[3]) { - __pyx_v_count = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } else { __pyx_v_count = ((int)0); } @@ -12075,7 +12179,7 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, __pyx_v_count = ((int)0); switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: - __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __pyx_v_count = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} case 3: __pyx_v_string = PyTuple_GET_ITEM(__pyx_args, 2); __pyx_v_repl = PyTuple_GET_ITEM(__pyx_args, 1); @@ -12086,14 +12190,14 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L3_error;} + __Pyx_RaiseArgtupleInvalid("subn", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_AddTraceback("re2.subn"); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1009 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1018 * return a replacement string to be used. * """ * return compile(pattern).subn(repl, string, count) # <<<<<<<<<<<<<< @@ -12101,23 +12205,23 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, * _alphanum = {} */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __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; - __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__subn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__subn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_repl); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_repl); @@ -12128,7 +12232,7 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -12150,7 +12254,7 @@ static PyObject *__pyx_pf_3re2_subn(PyObject *__pyx_self, PyObject *__pyx_args, return __pyx_r; } -/* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1016 +/* "/home/axiak/Documents/pyre2/src/re2.pyx":1025 * del c * * def escape(pattern): # <<<<<<<<<<<<<< @@ -12180,125 +12284,125 @@ static PyObject *__pyx_pf_3re2_escape(PyObject *__pyx_self, PyObject *__pyx_v_pa __pyx_v_alphanum = Py_None; __Pyx_INCREF(Py_None); __pyx_v_c = Py_None; __Pyx_INCREF(Py_None); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1018 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1027 * def escape(pattern): * "Escape all non-alphanumeric characters in pattern." * s = list(pattern) # <<<<<<<<<<<<<< * alphanum = _alphanum * for i in range(len(pattern)): */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_pattern); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_pattern); __Pyx_GIVEREF(__pyx_v_pattern); - __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_v_s)); __pyx_v_s = ((PyObject *)__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1019 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1028 * "Escape all non-alphanumeric characters in pattern." * s = list(pattern) * alphanum = _alphanum # <<<<<<<<<<<<<< * for i in range(len(pattern)): * c = pattern[i] */ - __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s___alphanum); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s___alphanum); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_alphanum); __pyx_v_alphanum = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1020 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1029 * s = list(pattern) * alphanum = _alphanum * for i in range(len(pattern)): # <<<<<<<<<<<<<< * c = pattern[i] * if ord(c) < 0x80 and c not in alphanum: */ - __pyx_t_3 = PyObject_Length(__pyx_v_pattern); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyObject_Length(__pyx_v_pattern); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__; goto __pyx_L1_error;} for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1021 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1030 * alphanum = _alphanum * for i in range(len(pattern)): * c = pattern[i] # <<<<<<<<<<<<<< * if ord(c) < 0x80 and c not in alphanum: * if c == "\000": */ - __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_pattern, __pyx_v_i, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_pattern, __pyx_v_i, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_v_c); __pyx_v_c = __pyx_t_2; __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1022 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1031 * for i in range(len(pattern)): * c = pattern[i] * if ord(c) < 0x80 and c not in alphanum: # <<<<<<<<<<<<<< * if c == "\000": * s[i] = "\\000" */ - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_c); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_c); __Pyx_GIVEREF(__pyx_v_c); - __pyx_t_1 = PyObject_Call(__pyx_builtin_ord, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(__pyx_builtin_ord, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_0x80, Py_LT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_0x80, Py_LT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_5) { - __pyx_t_6 = (__Pyx_NegateNonNeg(PySequence_Contains(__pyx_v_alphanum, __pyx_v_c))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = (__Pyx_NegateNonNeg(PySequence_Contains(__pyx_v_alphanum, __pyx_v_c))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_7 = __pyx_t_6; } else { __pyx_t_7 = __pyx_t_5; } if (__pyx_t_7) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1023 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1032 * c = pattern[i] * if ord(c) < 0x80 and c not in alphanum: * if c == "\000": # <<<<<<<<<<<<<< * s[i] = "\\000" * else: */ - __pyx_t_2 = PyObject_RichCompare(__pyx_v_c, ((PyObject *)__pyx_kp_s_4), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyObject_RichCompare(__pyx_v_c, ((PyObject *)__pyx_kp_s_4), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_7) { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1024 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1033 * if ord(c) < 0x80 and c not in alphanum: * if c == "\000": * s[i] = "\\000" # <<<<<<<<<<<<<< * else: * s[i] = "\\" + c */ - if (__Pyx_SetItemInt(((PyObject *)__pyx_v_s), __pyx_v_i, ((PyObject *)__pyx_kp_s_32), sizeof(Py_ssize_t), PyInt_FromSsize_t) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1024; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_SetItemInt(((PyObject *)__pyx_v_s), __pyx_v_i, ((PyObject *)__pyx_kp_s_32), sizeof(Py_ssize_t), PyInt_FromSsize_t) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1033; __pyx_clineno = __LINE__; goto __pyx_L1_error;} goto __pyx_L8; } /*else*/ { - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1026 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1035 * s[i] = "\\000" * else: * s[i] = "\\" + c # <<<<<<<<<<<<<< * return pattern[:0].join(s) * */ - __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_kp_s_3), __pyx_v_c); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_kp_s_3), __pyx_v_c); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - if (__Pyx_SetItemInt(((PyObject *)__pyx_v_s), __pyx_v_i, __pyx_t_2, sizeof(Py_ssize_t), PyInt_FromSsize_t) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_SetItemInt(((PyObject *)__pyx_v_s), __pyx_v_i, __pyx_t_2, sizeof(Py_ssize_t), PyInt_FromSsize_t) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L8:; @@ -12307,24 +12411,24 @@ static PyObject *__pyx_pf_3re2_escape(PyObject *__pyx_self, PyObject *__pyx_v_pa __pyx_L7:; } - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1027 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1036 * else: * s[i] = "\\" + c * return pattern[:0].join(s) # <<<<<<<<<<<<<< * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PySequence_GetSlice(__pyx_v_pattern, 0, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PySequence_GetSlice(__pyx_v_pattern, 0, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__join); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__join); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_s)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_s)); __Pyx_GIVEREF(((PyObject *)__pyx_v_s)); - __pyx_t_8 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -13057,6 +13161,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s__match, __pyx_k__match, sizeof(__pyx_k__match), 0, 0, 1, 1}, {&__pyx_n_s__match_string, __pyx_k__match_string, sizeof(__pyx_k__match_string), 0, 0, 1, 1}, {&__pyx_n_s__matches, __pyx_k__matches, sizeof(__pyx_k__matches), 0, 0, 1, 1}, + {&__pyx_n_s__max_mem, __pyx_k__max_mem, sizeof(__pyx_k__max_mem), 0, 0, 1, 1}, {&__pyx_n_s__maxsplit, __pyx_k__maxsplit, sizeof(__pyx_k__maxsplit), 0, 0, 1, 1}, {&__pyx_n_s__named_groups, __pyx_k__named_groups, sizeof(__pyx_k__named_groups), 0, 0, 1, 1}, {&__pyx_n_s__next, __pyx_k__next, sizeof(__pyx_k__next), 0, 0, 1, 1}, @@ -13081,6 +13186,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s__set_case_sensitive, __pyx_k__set_case_sensitive, sizeof(__pyx_k__set_case_sensitive), 0, 0, 1, 1}, {&__pyx_n_s__set_encoding, __pyx_k__set_encoding, sizeof(__pyx_k__set_encoding), 0, 0, 1, 1}, {&__pyx_n_s__set_log_errors, __pyx_k__set_log_errors, sizeof(__pyx_k__set_log_errors), 0, 0, 1, 1}, + {&__pyx_n_s__set_max_mem, __pyx_k__set_max_mem, sizeof(__pyx_k__set_max_mem), 0, 0, 1, 1}, {&__pyx_n_s__sorted, __pyx_k__sorted, sizeof(__pyx_k__sorted), 0, 0, 1, 1}, {&__pyx_n_s__span, __pyx_k__span, sizeof(__pyx_k__span), 0, 0, 1, 1}, {&__pyx_n_s__split, __pyx_k__split, sizeof(__pyx_k__split), 0, 0, 1, 1}, @@ -13097,7 +13203,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {0, 0, 0, 0, 0, 0, 0} }; static int __Pyx_InitCachedBuiltins(void) { - __pyx_builtin_Exception = __Pyx_GetName(__pyx_b, __pyx_n_s__Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_Exception = __Pyx_GetName(__pyx_b, __pyx_n_s__Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_range = __Pyx_GetName(__pyx_b, __pyx_n_s__range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_basestring = __Pyx_GetName(__pyx_b, __pyx_n_s__basestring); if (!__pyx_builtin_basestring) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -13105,10 +13211,10 @@ static int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_sorted = __Pyx_GetName(__pyx_b, __pyx_n_s__sorted); if (!__pyx_builtin_sorted) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_zip = __Pyx_GetName(__pyx_b, __pyx_n_s__zip); if (!__pyx_builtin_zip) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_n_s__enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_callable = __Pyx_GetName(__pyx_b, __pyx_n_s__callable); if (!__pyx_builtin_callable) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_NotImplementedError = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplementedError); if (!__pyx_builtin_NotImplementedError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_ord = __Pyx_GetName(__pyx_b, __pyx_n_s__ord); if (!__pyx_builtin_ord) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_callable = __Pyx_GetName(__pyx_b, __pyx_n_s__callable); if (!__pyx_builtin_callable) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_NotImplementedError = __Pyx_GetName(__pyx_b, __pyx_n_s__NotImplementedError); if (!__pyx_builtin_NotImplementedError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_builtin_ord = __Pyx_GetName(__pyx_b, __pyx_n_s__ord); if (!__pyx_builtin_ord) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;} return 0; __pyx_L1_error:; return -1; @@ -13123,10 +13229,10 @@ static int __Pyx_InitGlobals(void) { __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; + __pyx_int_13 = PyInt_FromLong(13); if (unlikely(!__pyx_int_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_100 = PyInt_FromLong(100); if (unlikely(!__pyx_int_100)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __pyx_int_0x80 = PyInt_FromLong(0x80); if (unlikely(!__pyx_int_0x80)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __pyx_int_0x00020B = PyInt_FromLong(0x00020B); if (unlikely(!__pyx_int_0x00020B)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; + __pyx_int_0x00020D = PyInt_FromLong(0x00020D); if (unlikely(!__pyx_int_0x00020D)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; return 0; __pyx_L1_error:; return -1; @@ -13225,7 +13331,7 @@ PyMODINIT_FUNC PyInit_re2(void) /*--- Function import code ---*/ /*--- Execution code ---*/ - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":3 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":3 * # cython: infer_types(False) * # Import re flags to be compatible. * import sys # <<<<<<<<<<<<<< @@ -13237,7 +13343,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__sys, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":4 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":4 * # Import re flags to be compatible. * import sys * import re # <<<<<<<<<<<<<< @@ -13249,7 +13355,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":6 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":6 * import re * * I = re.I # <<<<<<<<<<<<<< @@ -13264,7 +13370,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__I, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":7 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":7 * * I = re.I * IGNORECASE = re.IGNORECASE # <<<<<<<<<<<<<< @@ -13279,7 +13385,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__IGNORECASE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":8 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":8 * I = re.I * IGNORECASE = re.IGNORECASE * M = re.M # <<<<<<<<<<<<<< @@ -13294,7 +13400,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__M, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":9 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":9 * IGNORECASE = re.IGNORECASE * M = re.M * MULTILINE = re.MULTILINE # <<<<<<<<<<<<<< @@ -13309,7 +13415,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MULTILINE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":10 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":10 * M = re.M * MULTILINE = re.MULTILINE * S = re.S # <<<<<<<<<<<<<< @@ -13324,7 +13430,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__S, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":11 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":11 * MULTILINE = re.MULTILINE * S = re.S * DOTALL = re.DOTALL # <<<<<<<<<<<<<< @@ -13339,7 +13445,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DOTALL, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":12 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":12 * S = re.S * DOTALL = re.DOTALL * U = re.U # <<<<<<<<<<<<<< @@ -13354,7 +13460,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__U, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":13 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":13 * DOTALL = re.DOTALL * U = re.U * UNICODE = re.UNICODE # <<<<<<<<<<<<<< @@ -13369,7 +13475,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__UNICODE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":14 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":14 * U = re.U * UNICODE = re.UNICODE * X = re.X # <<<<<<<<<<<<<< @@ -13384,7 +13490,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__X, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":15 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":15 * UNICODE = re.UNICODE * X = re.X * VERBOSE = re.VERBOSE # <<<<<<<<<<<<<< @@ -13399,7 +13505,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__VERBOSE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":16 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":16 * X = re.X * VERBOSE = re.VERBOSE * L = re.L # <<<<<<<<<<<<<< @@ -13414,7 +13520,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__L, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":17 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":17 * VERBOSE = re.VERBOSE * L = re.L * LOCALE = re.LOCALE # <<<<<<<<<<<<<< @@ -13429,7 +13535,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOCALE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":19 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":19 * LOCALE = re.LOCALE * * FALLBACK_QUIETLY = 0 # <<<<<<<<<<<<<< @@ -13438,7 +13544,7 @@ PyMODINIT_FUNC PyInit_re2(void) */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FALLBACK_QUIETLY, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":20 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":20 * * FALLBACK_QUIETLY = 0 * FALLBACK_WARNING = 1 # <<<<<<<<<<<<<< @@ -13447,20 +13553,20 @@ PyMODINIT_FUNC PyInit_re2(void) */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FALLBACK_WARNING, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":21 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":21 * FALLBACK_QUIETLY = 0 * FALLBACK_WARNING = 1 * FALLBACK_EXCEPTION = 2 # <<<<<<<<<<<<<< * - * VERSION = (0, 2, 11) + * VERSION = (0, 2, 13) */ if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FALLBACK_EXCEPTION, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":23 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":23 * FALLBACK_EXCEPTION = 2 * - * VERSION = (0, 2, 11) # <<<<<<<<<<<<<< - * VERSION_HEX = 0x00020B + * VERSION = (0, 2, 13) # <<<<<<<<<<<<<< + * VERSION_HEX = 0x00020D * */ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -13471,22 +13577,22 @@ PyMODINIT_FUNC PyInit_re2(void) __Pyx_INCREF(__pyx_int_2); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_2); __Pyx_GIVEREF(__pyx_int_2); - __Pyx_INCREF(__pyx_int_11); - PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_int_11); - __Pyx_GIVEREF(__pyx_int_11); + __Pyx_INCREF(__pyx_int_13); + PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_int_13); + __Pyx_GIVEREF(__pyx_int_13); if (PyObject_SetAttr(__pyx_m, __pyx_n_s__VERSION, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":24 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":24 * - * VERSION = (0, 2, 11) - * VERSION_HEX = 0x00020B # <<<<<<<<<<<<<< + * VERSION = (0, 2, 13) + * VERSION_HEX = 0x00020D # <<<<<<<<<<<<<< * * # Type of compiled re object from Python stdlib */ - if (PyObject_SetAttr(__pyx_m, __pyx_n_s__VERSION_HEX, __pyx_int_0x00020B) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s__VERSION_HEX, __pyx_int_0x00020D) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":27 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":27 * * # Type of compiled re object from Python stdlib * SREPattern = type(re.compile('')) # <<<<<<<<<<<<<< @@ -13510,7 +13616,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__SREPattern, ((PyObject *)Py_TYPE(__pyx_t_3))) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":29 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":29 * SREPattern = type(re.compile('')) * * cdef int current_notification = FALLBACK_QUIETLY # <<<<<<<<<<<<<< @@ -13523,7 +13629,7 @@ PyMODINIT_FUNC PyInit_re2(void) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_3re2_current_notification = __pyx_t_4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":45 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":45 * * * class RegexError(re.error): # <<<<<<<<<<<<<< @@ -13550,7 +13656,7 @@ PyMODINIT_FUNC PyInit_re2(void) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":51 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":51 * pass * * error = RegexError # <<<<<<<<<<<<<< @@ -13562,7 +13668,7 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__error, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":53 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":53 * error = RegexError * * cdef int _I = I, _M = M, _S = S, _U = U, _X = X, _L = L # <<<<<<<<<<<<<< @@ -13600,7 +13706,7 @@ PyMODINIT_FUNC PyInit_re2(void) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_3re2__L = __pyx_t_4; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":58 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":58 * cimport cpython.unicode * from cython.operator cimport preincrement as inc, dereference as deref * import warnings # <<<<<<<<<<<<<< @@ -13612,198 +13718,198 @@ PyMODINIT_FUNC PyInit_re2(void) if (PyObject_SetAttr(__pyx_m, __pyx_n_s__warnings, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":749 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":757 * del sp * * _cache = {} # <<<<<<<<<<<<<< * _cache_repl = {} * */ - __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - if (PyObject_SetAttr(__pyx_m, __pyx_n_s___cache, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s___cache, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":750 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":758 * * _cache = {} * _cache_repl = {} # <<<<<<<<<<<<<< * * _MAXCACHE = 100 */ - __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 758; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - if (PyObject_SetAttr(__pyx_m, __pyx_n_s___cache_repl, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s___cache_repl, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 758; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":752 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":760 * _cache_repl = {} * * _MAXCACHE = 100 # <<<<<<<<<<<<<< * - * def compile(pattern, int flags=0): + * def compile(pattern, int flags=0, int max_mem=8388608): */ - if (PyObject_SetAttr(__pyx_m, __pyx_n_s___MAXCACHE, __pyx_int_100) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s___MAXCACHE, __pyx_int_100) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":766 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":774 * return p * * class BackreferencesException(Exception): # <<<<<<<<<<<<<< * pass * */ - __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_3)); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_builtin_Exception); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_Exception); __Pyx_GIVEREF(__pyx_builtin_Exception); - __pyx_t_1 = __Pyx_CreateClass(__pyx_t_2, ((PyObject *)__pyx_t_3), __pyx_n_s_24, "re2"); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_CreateClass(__pyx_t_2, ((PyObject *)__pyx_t_3), __pyx_n_s_24, "re2"); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyObject_SetAttr(__pyx_m, __pyx_n_s_24, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s_24, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":769 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":777 * pass * * WHITESPACE = set(" \t\n\r\v\f") # <<<<<<<<<<<<<< * * class Tokenizer: */ - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(((PyObject *)__pyx_kp_s_34)); PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_34)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_34)); - __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PySet_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PySet_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyObject_SetAttr(__pyx_m, __pyx_n_s__WHITESPACE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s__WHITESPACE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":771 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":779 * WHITESPACE = set(" \t\n\r\v\f") * * class Tokenizer: # <<<<<<<<<<<<<< * def __init__(self, string): * self.string = string */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); - __pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_t_1), __pyx_n_s__Tokenizer, "re2"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_t_1), __pyx_n_s__Tokenizer, "re2"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":772 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":780 * * class Tokenizer: * def __init__(self, string): # <<<<<<<<<<<<<< * self.string = string * self.index = 0 */ - __pyx_t_2 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer___init__, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer___init__, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyMethod_New(__pyx_t_2, 0, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyMethod_New(__pyx_t_2, 0, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____init__, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____init__, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":776 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":784 * self.index = 0 * self.__next() * def __next(self): # <<<<<<<<<<<<<< * if self.index >= len(self.string): * self.next = None */ - __pyx_t_5 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer___next, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer___next, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = PyMethod_New(__pyx_t_5, 0, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyMethod_New(__pyx_t_5, 0, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____next, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____next, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":789 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":797 * self.index = self.index + len(ch) * self.next = ch * def get(self): # <<<<<<<<<<<<<< * this = self.next * self.__next() */ - __pyx_t_2 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer_get, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_New(&__pyx_mdef_3re2_9Tokenizer_get, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = PyMethod_New(__pyx_t_2, 0, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = PyMethod_New(__pyx_t_2, 0, __pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s__get, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s__get, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Tokenizer, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Tokenizer, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1011 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1020 * return compile(pattern).subn(repl, string, count) * * _alphanum = {} # <<<<<<<<<<<<<< * for c in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890': * _alphanum[c] = 1 */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(((PyObject *)__pyx_t_1)); - if (PyObject_SetAttr(__pyx_m, __pyx_n_s___alphanum, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s___alphanum, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1012 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1021 * * _alphanum = {} * for c in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890': # <<<<<<<<<<<<<< * _alphanum[c] = 1 * del c */ - __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_n_s_35)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_n_s_35)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); for (;;) { { __pyx_t_3 = PyIter_Next(__pyx_t_1); if (!__pyx_t_3) { - if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} break; } __Pyx_GOTREF(__pyx_t_3); } - if (PyObject_SetAttr(__pyx_m, __pyx_n_s__c, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetAttr(__pyx_m, __pyx_n_s__c, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1013 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1022 * _alphanum = {} * for c in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890': * _alphanum[c] = 1 # <<<<<<<<<<<<<< * del c * */ - __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s___alphanum); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s___alphanum); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__c); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__c); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - if (PyObject_SetItem(__pyx_t_3, __pyx_t_5, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyObject_SetItem(__pyx_t_3, __pyx_t_5, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1014 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1023 * for c in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890': * _alphanum[c] = 1 * del c # <<<<<<<<<<<<<< * * def escape(pattern): */ - if (__Pyx_DelAttrString(__pyx_m, "c") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__Pyx_DelAttrString(__pyx_m, "c") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "/home/itsadok/code/oscode/pyre2/src/re2.pyx":1 + /* "/home/axiak/Documents/pyre2/src/re2.pyx":1 * # cython: infer_types(False) # <<<<<<<<<<<<<< * # Import re flags to be compatible. * import sys diff --git a/src/re2.pyx b/src/re2.pyx index 589c3da7..7fdc26bc 100644 --- a/src/re2.pyx +++ b/src/re2.pyx @@ -404,16 +404,24 @@ cdef class Pattern: if hasattr(string, 'tostring'): string = string.tostring() + string = unicode_to_bytestring(string, &encoded) + if pystring_to_bytestring(string, &cstring, &size) == -1: raise TypeError("expected string or buffer") - if endpos != -1 and endpos < size: + if endpos >= 0 and endpos <= pos: + return None + + if endpos >= 0 and endpos < size: size = endpos + if pos > size: + return None + sp = new _re2.StringPiece(cstring, size) with nogil: - result = self.re_pattern.Match(sp[0], pos, anchoring, m.matches, self.ngroups + 1) + result = self.re_pattern.Match(sp[0], pos, size, anchoring, m.matches, self.ngroups + 1) del sp if result == 0: @@ -473,7 +481,7 @@ cdef class Pattern: while True: m = Match(self, self.ngroups + 1) with nogil: - result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) if result == 0: break m.encoded = encoded @@ -550,7 +558,7 @@ cdef class Pattern: while True: with nogil: - result = self.re_pattern.Match(sp[0], (pos + lookahead), _re2.UNANCHORED, matches, self.ngroups + 1) + result = self.re_pattern.Match(sp[0], (pos + lookahead), size, _re2.UNANCHORED, matches, self.ngroups + 1) if result == 0: break @@ -661,7 +669,7 @@ cdef class Pattern: sp = new _re2.StringPiece(fixed_repl.c_str()) else: sp = new _re2.StringPiece(cstring, size) - + input_str = new _re2.cpp_string(string) if not count: total_replacements = _re2.pattern_GlobalReplace(input_str, @@ -716,7 +724,7 @@ cdef class Pattern: while True: m = Match(self, self.ngroups + 1) with nogil: - result = self.re_pattern.Match(sp[0], pos, _re2.UNANCHORED, m.matches, self.ngroups + 1) + result = self.re_pattern.Match(sp[0], pos, size, _re2.UNANCHORED, m.matches, self.ngroups + 1) if result == 0: break @@ -817,13 +825,13 @@ def prepare_pattern(pattern, int flags): if this in (None, "\n"): break continue - + if this[0] not in '[\\': new_pattern.append(this) continue elif this == '[': - new_pattern.append(this) + new_pattern.append(this) while 1: this = source.get() if this is None: @@ -839,7 +847,7 @@ def prepare_pattern(pattern, int flags): new_pattern.append(r'_\p{L}\p{Nd}') elif this[1] == 's': new_pattern.append(r'\s\p{Z}') - else: + else: new_pattern.append(this) else: new_pattern.append(this)