[pypy-commit] pypy py3.6: changeset abe60bf6dc7b broke re.compile('([ \t]*line\W)|([ \t]*\d+)') in cffi
mattip
pypy.commits at gmail.com
Fri Sep 20 04:18:50 EDT 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r97560:b2dd9b388196
Date: 2019-09-20 09:51 +0300
http://bitbucket.org/pypy/pypy/changeset/b2dd9b388196/
Log: changeset abe60bf6dc7b broke re.compile('([ \t]*line\W)|([
\t]*\d+)') in cffi
diff --git a/pypy/interpreter/pyparser/test/apptest_parsestring.py b/pypy/interpreter/pyparser/test/apptest_parsestring.py
--- a/pypy/interpreter/pyparser/test/apptest_parsestring.py
+++ b/pypy/interpreter/pyparser/test/apptest_parsestring.py
@@ -8,11 +8,3 @@
eval("b'''\n\\z'''")
assert not w
assert excinfo.value.filename == '<string>'
-
-def test_str_invalid_escape():
- with warnings.catch_warnings(record=True) as w:
- warnings.simplefilter('error', category=DeprecationWarning)
- with raises(SyntaxError) as excinfo:
- eval("'''\n\\z'''")
- assert not w
- assert excinfo.value.filename == '<string>'
diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -130,15 +130,6 @@
final=True,
errorhandler=state.decode_error_handler,
ud_handler=unicodedata_handler)
- if first_escape_error_char is not None:
- msg = "invalid escape sequence '%s'"
- try:
- space.warn(space.newtext(msg % first_escape_error_char), space.w_DeprecationWarning)
- except OperationError as e:
- if e.match(space, space.w_DeprecationWarning):
- raise oefmt(space.w_SyntaxError, msg, first_escape_error_char)
- else:
- raise
return s, ulen, blen
def decode_raw_unicode_escape(space, string):
More information about the pypy-commit
mailing list