Author: &#321;ukasz Langa <[email protected]>
Branch: 
Changeset: r95796:5961de08b177
Date: 2019-02-04 17:01 +0100
http://bitbucket.org/pypy/pypy/changeset/5961de08b177/

Log:    (cfbolz,ambv) [sre] Make the error message consistent with CPython

diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -531,7 +531,7 @@
             assert idx >= 0
             return fmarks[idx], fmarks[idx+1]
         else:
-            raise oefmt(space.w_IndexError, "group index out of range")
+            raise oefmt(space.w_IndexError, "no such group")
 
     def _last_index(self):
         mark = self.ctx.match_marks
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to