spacepaste

  1.  
  2. # HG changeset patch
  3. # User Matti Picus <matti.picus@gmail.com>
  4. # Date 1522052333 -10800
  5. # Mon Mar 26 11:18:53 2018 +0300
  6. # Node ID 0a18a9ef4958fcfaf96c1ed242047eefee97dabf
  7. # Parent ba9c5b2e6e60b9cb2a00ed631aac823b9d5af3ee
  8. a workaround for issue 2775
  9. diff -r ba9c5b2e6e60 -r 0a18a9ef4958 pypy/module/_sre/interp_sre.py
  10. --- a/pypy/module/_sre/interp_sre.py Sun Mar 25 10:00:16 2018 +0300
  11. +++ b/pypy/module/_sre/interp_sre.py Mon Mar 26 11:18:53 2018 +0300
  12. @@ -275,12 +275,13 @@
  13. sublist_w = []
  14. n = last_pos = 0
  15. while not count or n < count:
  16. + pattern = ctx.pattern
  17. sub_jitdriver.jit_merge_point(
  18. self=self,
  19. use_builder=use_builder,
  20. filter_is_callable=filter_is_callable,
  21. filter_type=type(w_filter),
  22. - ctx=ctx,
  23. + ctx=ctx, pattern=pattern,
  24. w_filter=w_filter,
  25. strbuilder=strbuilder,
  26. unicodebuilder=unicodebuilder,
  27. @@ -355,7 +356,7 @@
  28. filter_as_unicode
  29. w_string sublist_w
  30. self""".split(),
  31. - greens=["filter_is_callable", "use_builder", "filter_type", "ctx.pattern"])
  32. + greens=["filter_is_callable", "use_builder", "filter_type", "pattern"])
  33. def _sub_append_slice(ctx, space, use_builder, sublist_w,
  34.