Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86699:64af2a8d31d3
Date: 2016-08-29 16:16 +0200
http://bitbucket.org/pypy/pypy/changeset/64af2a8d31d3/
Log: update
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
@@ -14,8 +14,7 @@
# Constants and exposed functions
from rpython.rlib.rsre import rsre_core
-from rpython.rlib.rsre.rsre_char import CODESIZE, MAXREPEAT, MAXGROUPS,
getlower
-from rpython.rlib.rsre.rsre_char import set_unicode_db, SRE_FLAG_FULLMATCH
+from rpython.rlib.rsre.rsre_char import CODESIZE, MAXREPEAT, MAXGROUPS,
getlower, set_unicode_db
@unwrap_spec(char_ord=int, flags=int)
@@ -164,7 +163,8 @@
@unwrap_spec(pos=int, endpos=int)
def fullmatch_w(self, w_string, pos=0, endpos=sys.maxint):
- ctx = self.make_ctx(w_string, pos, endpos, SRE_FLAG_FULLMATCH)
+ ctx = self.make_ctx(w_string, pos, endpos)
+ ctx.fullmatch_only = True
return self.getmatch(ctx, matchcontext(self.space, ctx))
@unwrap_spec(pos=int, endpos=int)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit