Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 30217:21d3b06df793 2.3
SF bug #795506: Wrong handling of string format code for float values.
Added missing support for '%F' as had been documented.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Wed, 27 Aug 2003 05:08:19 +0000 |
| parents | 4708fa086121 |
| children | 784e38abed82 cd0c3f916b34 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Tue Aug 26 11:59:41 2003 +0000 +++ b/Objects/unicodeobject.c Wed Aug 27 05:08:19 2003 +0000 @@ -6540,8 +6540,11 @@ case 'e': case 'E': case 'f': + case 'F': case 'g': case 'G': + if (c == 'F') + c = 'f'; pbuf = formatbuf; len = formatfloat(pbuf, sizeof(formatbuf)/sizeof(Py_UNICODE), flags, prec, c, v);
