[pypy-commit] pypy py3.5-fstring-pep498: translation fix

arigo pypy.commits at gmail.com
Tue Jan 24 11:11:00 EST 2017


Author: Armin Rigo <arigo at 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


More information about the pypy-commit mailing list