Author: Armin Rigo <ar...@tunes.org> Branch: py3.5-fstring-pep498 Changeset: r89745:207d98a326e0 Date: 2017-01-24 17:09 +0100 http://bitbucket.org/pypy/pypy/changeset/207d98a326e0/
Log: translation fix 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 @@ -352,7 +352,7 @@ # Unicode/ValueError in literal: turn into SyntaxError e.normalize_exception(space) errmsg = space.str_w(space.str(e.get_w_value(space))) - raise self.error('(%s) %s' % (kind, errmsg), atom_node) + raise astbuilder.error('(%s) %s' % (kind, errmsg), atom_node) if len(joined_pieces) == 1: # <= the common path return joined_pieces[0] # ast.Str, Bytes or FormattedValue _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit