Cleanup PyUnicode_FromFormatV() for zero padding
Skip the "0" instead of parsing it twice: detect zero padding and then parsed
as a digit of the width.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0ed38fe..73a3dc4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2349,7 +2349,11 @@
p = f;
f++;
- zeropad = (*f == '0');
+ zeropad = 0;
+ if (*f == '0') {
+ zeropad = 1;
+ f++;
+ }
/* parse the width.precision part, e.g. "%2.5s" => width=2, precision=5 */
width = 0;