Issue #10829: Refactor PyUnicode_FromFormat()

 * Use the same function to parse the format string in the 3 steps
 * Fix crashs on invalid format strings
3 files changed