[pypy-svn] pypy fast-forward: Revert 3e445a90386f, it breaks translation
amauryfa
commits-noreply at bitbucket.org
Tue Jan 4 11:39:23 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40373:731631d2e97f
Date: 2011-01-04 10:26 +0100
http://bitbucket.org/pypy/pypy/changeset/731631d2e97f/
Log: Revert 3e445a90386f, it breaks translation
diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py
--- a/pypy/rlib/rarithmetic.py
+++ b/pypy/rlib/rarithmetic.py
@@ -579,11 +579,6 @@
fmt = "%%%s.%d%s" % (alt, precision, code)
s = fmt % (x,)
- return s
-
-def formatd(x, code, precision, flags=0):
- s = _formatd(x, code, precision, flags)
-
if flags & DTSF_ADD_DOT_0:
# We want float numbers to be recognizable as such,
# i.e., they should contain a decimal point or an exponent.
@@ -598,6 +593,8 @@
s = s[:-2]
return s
+def formatd(x, code, precision, flags=0):
+ return _formatd(x, code, precision, flags)
formatd_max_length = 120
More information about the Pypy-commit
mailing list