mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
SF bug #795506: Wrong handling of string format code for float values.
Adding missing support for '%F'. Will backport to 2.3.1.
This commit is contained in:
parent
063606a0d5
commit
9bfe533c69
4 changed files with 10 additions and 0 deletions
|
|
@ -3921,8 +3921,11 @@ PyString_Format(PyObject *format, PyObject *args)
|
|||
case 'e':
|
||||
case 'E':
|
||||
case 'f':
|
||||
case 'F':
|
||||
case 'g':
|
||||
case 'G':
|
||||
if (c == 'F')
|
||||
c = 'f';
|
||||
pbuf = formatbuf;
|
||||
len = formatfloat(pbuf, sizeof(formatbuf),
|
||||
flags, prec, c, v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue