Author: Philip Jenvey <pjen...@underboss.org> Branch: py3.5 Changeset: r87382:f7b4a8aedcfc Date: 2016-09-25 19:57 -0700 http://bitbucket.org/pypy/pypy/changeset/f7b4a8aedcfc/
Log: simplify 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 @@ -225,10 +225,9 @@ value = space.charbuf_w(w_value) except OperationError as e: if e.match(space, space.w_TypeError): - raise oefmt( - space.w_TypeError, - ("float() argument must be a string or a number, " - "not '%T'"), w_value) + raise oefmt(space.w_TypeError, + "float() argument must be a string or a " + "number, 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