diff Objects/stringobject.c @ 57503:930aeded900d legacy-trunk

Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
author Eric Smith <eric@trueblade.com>
date Sun, 29 Nov 2009 17:40:57 +0000
parents a7eb1ae4e919
children ddf61cd775e0
line wrap: on
line diff
--- a/Objects/stringobject.c	Sat Nov 28 16:32:27 2009 +0000
+++ b/Objects/stringobject.c	Sun Nov 29 17:40:57 2009 +0000
@@ -4966,8 +4966,6 @@
 			case 'F':
 			case 'g':
 			case 'G':
-				if (c == 'F')
-					c = 'f';
 				temp = formatfloat(v, flags, prec, c);
 				if (temp == NULL)
 					goto error;