mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
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:
parent
ccc690d650
commit
c4ab8339e9
7 changed files with 59 additions and 20 deletions
|
@ -8809,8 +8809,6 @@ PyObject *PyUnicode_Format(PyObject *format,
|
|||
case 'F':
|
||||
case 'g':
|
||||
case 'G':
|
||||
if (c == 'F')
|
||||
c = 'f';
|
||||
temp = formatfloat(v, flags, prec, c);
|
||||
if (temp == NULL)
|
||||
goto onError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue