Author: Daniel Patrick <danieljudepatr...@gmail.com>
Branch: py3.5
Changeset: r87376:f1684dba7231
Date: 2016-09-25 19:25 +0100
http://bitbucket.org/pypy/pypy/changeset/f1684dba7231/

Log:    Replace invalid RPython in floatobject.py (commit 0bf6794, pull
        request #481)

diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py
--- a/pypy/objspace/std/floatobject.py
+++ b/pypy/objspace/std/floatobject.py
@@ -227,7 +227,7 @@
                     raise oefmt(
                         space.w_TypeError,
                         "float() argument must be a string or a number,\
-                                not 
'{}'".format(type(space.unwrap(w_value)).__name__))
+                                not '%T'", w_value)
                 raise
             value = _string_to_float(space, w_value, value)
         w_obj = space.allocate_instance(W_FloatObject, w_floattype)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to