Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.

This commit is contained in:
Eric Smith 2009-11-29 17:40:57 +00:00
parent ccc690d650
commit c4ab8339e9
7 changed files with 59 additions and 20 deletions

View file

@ -4966,8 +4966,6 @@ PyString_Format(PyObject *format, PyObject *args)
case 'F':
case 'g':
case 'G':
if (c == 'F')
c = 'f';
temp = formatfloat(v, flags, prec, c);
if (temp == NULL)
goto error;