summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-05-01 15:37:04 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-05-01 15:37:04 (GMT)
commit33841c34896834daa8ee38d3ff54d7800b9723c2 (patch)
tree1de0e45e427cc30b610fb4813e201ddef264e251 /Objects/unicodeobject.c
parentf489caf5daa2b0f3a1bd951b585c834aab1a54c6 (diff)
downloadcpython-33841c34896834daa8ee38d3ff54d7800b9723c2.zip
cpython-33841c34896834daa8ee38d3ff54d7800b9723c2.tar.gz
cpython-33841c34896834daa8ee38d3ff54d7800b9723c2.tar.bz2
Issue #5859: Remove '%f' to '%g' formatting switch for large floats.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 31b9a73..68d4fc4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -8808,9 +8808,6 @@ formatfloat(PyObject *v, int flags, int prec, int type)
if (prec < 0)
prec = 6;
- if (type == 'f' && fabs(x) >= 1e50)
- type = 'g';
-
p = PyOS_double_to_string(x, type, prec,
(flags & F_ALT) ? Py_DTSF_ALT : 0, NULL);
if (p == NULL)