Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61387:57a1886270d2
Date: 2013-02-17 14:13 -0800
http://bitbucket.org/pypy/pypy/changeset/57a1886270d2/

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
@@ -165,8 +165,7 @@
 def repr__Float(space, w_float):
     return space.wrap(float2string(w_float.floatval, 'r', 0))
 
-def str__Float(space, w_float):
-    return space.wrap(float2string(w_float.floatval, 'r', 0))
+str__Float = repr__Float
 
 def format__Float_ANY(space, w_float, w_spec):
     return newformat.run_formatter(space, w_spec, "format_float", w_float)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to