Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r89753:cee6cd3d91ce Date: 2017-01-24 18:27 +0100 http://bitbucket.org/pypy/pypy/changeset/cee6cd3d91ce/
Log: raise a regular SyntaxError diff --git a/pypy/interpreter/astcompiler/fstring.py b/pypy/interpreter/astcompiler/fstring.py --- a/pypy/interpreter/astcompiler/fstring.py +++ b/pypy/interpreter/astcompiler/fstring.py @@ -294,13 +294,13 @@ space = astbuilder.space if not space.config.objspace.fstrings: - raise oefmt(space.w_SystemError, - "f-strings have been disabled in this version of pypy " - "with the translation option --no-objspace-fstrings. " - "The PyPy team (and CPython) thinks f-strings don't " - "add any security risks, but we leave it to you to " - "convince whoever translated this pypy that it is " - "really the case") + raise astbuilder.error( + "f-strings have been disabled in this version of pypy " + "with the translation option '--no-objspace-fstrings'. " + "The PyPy team (and CPython) thinks f-strings don't " + "add any security risks, but we leave it to you to " + "convince whoever translated this pypy that it is " + "really the case", atom_node) while True: literal, expr = fstring_find_literal_and_expr(astbuilder, fstr, _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit