-
- # HG changeset patch
- # User Matti Picus <matti.picus@gmail.com>
- # Date 1522052333 -10800
- # Mon Mar 26 11:18:53 2018 +0300
- # Node ID 0a18a9ef4958fcfaf96c1ed242047eefee97dabf
- # Parent ba9c5b2e6e60b9cb2a00ed631aac823b9d5af3ee
- a workaround for issue 2775
-
- diff -r ba9c5b2e6e60 -r 0a18a9ef4958 pypy/module/_sre/interp_sre.py
- --- a/pypy/module/_sre/interp_sre.py Sun Mar 25 10:00:16 2018 +0300
- +++ b/pypy/module/_sre/interp_sre.py Mon Mar 26 11:18:53 2018 +0300
- @@ -275,12 +275,13 @@
- sublist_w = []
- n = last_pos = 0
- while not count or n < count:
- + pattern = ctx.pattern
- sub_jitdriver.jit_merge_point(
- self=self,
- use_builder=use_builder,
- filter_is_callable=filter_is_callable,
- filter_type=type(w_filter),
- - ctx=ctx,
- + ctx=ctx, pattern=pattern,
- w_filter=w_filter,
- strbuilder=strbuilder,
- unicodebuilder=unicodebuilder,
- @@ -355,7 +356,7 @@
- filter_as_unicode
- w_string sublist_w
- self""".split(),
- - greens=["filter_is_callable", "use_builder", "filter_type", "ctx.pattern"])
- + greens=["filter_is_callable", "use_builder", "filter_type", "pattern"])
-
-
- def _sub_append_slice(ctx, space, use_builder, sublist_w,
-