Use upstream bug fix for regex engine

This commit is contained in:
Kovid Goyal 2014-01-01 07:57:49 +05:30
parent c1920935d5
commit 402bd2bb77
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ __all__ = ["compile", "escape", "findall", "finditer", "fullmatch", "match",
"V0", "VERSION0", "V1", "VERSION1", "X", "VERBOSE", "W", "WORD", "error", "V0", "VERSION0", "V1", "VERSION1", "X", "VERBOSE", "W", "WORD", "error",
"Regex"] "Regex"]
__version__ = "2.4.36" __version__ = "2.4.37"
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Public interface. # Public interface.

View File

@ -13232,7 +13232,6 @@ Py_LOCAL_INLINE(BOOL) state_init_2(RE_State* state, PatternObject* pattern,
state->groups = NULL; state->groups = NULL;
state->repeats = NULL; state->repeats = NULL;
state->req_pos = -1;
state->visible_captures = visible_captures; state->visible_captures = visible_captures;
state->match_all = match_all; state->match_all = match_all;
state->backtrack_block.previous = NULL; state->backtrack_block.previous = NULL;
@ -13248,6 +13247,7 @@ Py_LOCAL_INLINE(BOOL) state_init_2(RE_State* state, PatternObject* pattern,
state->first_group_call_frame = NULL; state->first_group_call_frame = NULL;
state->current_group_call_frame = NULL; state->current_group_call_frame = NULL;
state->group_call_guard_list = NULL; state->group_call_guard_list = NULL;
state->req_pos = -1;
/* The call guards used by recursive patterns. */ /* The call guards used by recursive patterns. */
if (pattern->call_ref_info_count > 0) { if (pattern->call_ref_info_count > 0) {