diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-05-01 15:37:04 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-05-01 15:37:04 (GMT) |
commit | 33841c34896834daa8ee38d3ff54d7800b9723c2 (patch) | |
tree | 1de0e45e427cc30b610fb4813e201ddef264e251 /Objects/stringlib | |
parent | f489caf5daa2b0f3a1bd951b585c834aab1a54c6 (diff) | |
download | cpython-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/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 c5cda4c..d9d47b9 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" |