diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 20:28:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 20:28:27 (GMT) |
commit | 064bbdc79bc34cdc26988e0344c289e42a19e79c (patch) | |
tree | 7addeada9b71f221337fdbf5917bd1fef3345949 | |
parent | 0ff0f54dd498170d5698132d24deeeaaab9bf5df (diff) | |
download | cpython-064bbdc79bc34cdc26988e0344c289e42a19e79c.zip cpython-064bbdc79bc34cdc26988e0344c289e42a19e79c.tar.gz cpython-064bbdc79bc34cdc26988e0344c289e42a19e79c.tar.bz2 |
fix indentation
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 33bd779..b449953 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -1275,19 +1275,19 @@ mbstreamreader_iread(MultibyteStreamReaderObject *self, if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { PyErr_NoMemory(); goto errorexit; - } - rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; - ctr = PyBytes_FromStringAndSize(NULL, rsize); - if (ctr == NULL) - goto errorexit; - ctrdata = PyBytes_AS_STRING(ctr); - memcpy(ctrdata, self->pending, self->pendingsize); - memcpy(ctrdata + self->pendingsize, - PyBytes_AS_STRING(cres), - PyBytes_GET_SIZE(cres)); - Py_DECREF(cres); - cres = ctr; - self->pendingsize = 0; + } + rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; + ctr = PyBytes_FromStringAndSize(NULL, rsize); + if (ctr == NULL) + goto errorexit; + ctrdata = PyBytes_AS_STRING(ctr); + memcpy(ctrdata, self->pending, self->pendingsize); + memcpy(ctrdata + self->pendingsize, + PyBytes_AS_STRING(cres), + PyBytes_GET_SIZE(cres)); + Py_DECREF(cres); + cres = ctr; + self->pendingsize = 0; } rsize = PyBytes_GET_SIZE(cres); |