From 402bd2bb77ca962f5252faa257fa7dceff2923b0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Jan 2014 07:57:49 +0530 Subject: [PATCH] Use upstream bug fix for regex engine --- src/regex/__init__.py | 2 +- src/regex/_regex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex/__init__.py b/src/regex/__init__.py index d325d878fb..e54b5797a3 100644 --- a/src/regex/__init__.py +++ b/src/regex/__init__.py @@ -225,7 +225,7 @@ __all__ = ["compile", "escape", "findall", "finditer", "fullmatch", "match", "V0", "VERSION0", "V1", "VERSION1", "X", "VERBOSE", "W", "WORD", "error", "Regex"] -__version__ = "2.4.36" +__version__ = "2.4.37" # -------------------------------------------------------------------- # Public interface. diff --git a/src/regex/_regex.c b/src/regex/_regex.c index 4418ccd817..2a5698cba9 100644 --- a/src/regex/_regex.c +++ b/src/regex/_regex.c @@ -13232,7 +13232,6 @@ Py_LOCAL_INLINE(BOOL) state_init_2(RE_State* state, PatternObject* pattern, state->groups = NULL; state->repeats = NULL; - state->req_pos = -1; state->visible_captures = visible_captures; state->match_all = match_all; 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->current_group_call_frame = NULL; state->group_call_guard_list = NULL; + state->req_pos = -1; /* The call guards used by recursive patterns. */ if (pattern->call_ref_info_count > 0) {