cpython: a966f9311ebb (original) (raw)
Mercurial > cpython
changeset 76706:a966f9311ebb
Issue #14687: Cleanup PyUnicode_Format() [#14687]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Wed, 02 May 2012 00:41:57 +0200 |
parents | 4b98ce6ef95e |
children | 359b1a6a3836 |
files | Objects/unicodeobject.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-)[+] [-] Objects/unicodeobject.c 6 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -13719,7 +13719,8 @@ PyUnicode_Format(PyObject *format, PyObj PyObject *signobj = NULL, *fillobj = NULL; fmtpos++;
if (PyUnicode_READ(fmtkind, fmt, fmtpos) == '(') {[](#l1.7)
c = PyUnicode_READ(fmtkind, fmt, fmtpos);[](#l1.8)
if (c == '(') {[](#l1.9) Py_ssize_t keystart;[](#l1.10) Py_ssize_t keylen;[](#l1.11) PyObject *key;[](#l1.12)
@@ -13765,7 +13766,8 @@ PyUnicode_Format(PyObject *format, PyObj argidx = -2; } while (--fmtcnt >= 0) {
switch (c = PyUnicode_READ(fmtkind, fmt, fmtpos++)) {[](#l1.17)
c = PyUnicode_READ(fmtkind, fmt, fmtpos++);[](#l1.18)
switch (c) {[](#l1.19) case '-': flags |= F_LJUST; continue;[](#l1.20) case '+': flags |= F_SIGN; continue;[](#l1.21) case ' ': flags |= F_BLANK; continue;[](#l1.22)