diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-05-01 15:37:04 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-05-01 15:37:04 +0000 |
commit | 06cab53b2ca09bba458b9fb797335cac9650503b (patch) | |
tree | 2db324f02e9b6a6b59fd5449c01ecabea57227a0 /Objects/stringlib | |
parent | 2e44ef0317f3d9602992fad51e4b04d1ae54bcee (diff) | |
download | cpython-06cab53b2ca09bba458b9fb797335cac9650503b.tar.gz |
Issue #5859: Remove '%f' to '%g' formatting switch for large floats.
Diffstat (limited to 'Objects/stringlib')
-rw-r--r-- | Objects/stringlib/formatter.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/stringlib/formatter.h b/Objects/stringlib/formatter.h index c5cda4cebf..d9d47b9f49 100644 --- a/Objects/stringlib/formatter.h +++ b/Objects/stringlib/formatter.h @@ -934,8 +934,6 @@ format_float_internal(PyObject *value, if (precision < 0) precision = 6; - if ((type == 'f' || type == 'F') && fabs(val) >= 1e50) - type = 'g'; /* Cast "type", because if we're in unicode we need to pass a 8-bit char. This is safe, because we've restricted what "type" |