diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-12 20:39:02 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-12 20:39:02 (GMT) |
commit | 3f36a5736b92457273d06cc17d55dd379381873d (patch) | |
tree | 81b290f15766d544f0962fed401f52036bf961cc /Modules/cjkcodecs | |
parent | dcf17f8a553f51fc77d6bb72f4563f625af0d639 (diff) | |
download | cpython-3f36a5736b92457273d06cc17d55dd379381873d.zip cpython-3f36a5736b92457273d06cc17d55dd379381873d.tar.gz cpython-3f36a5736b92457273d06cc17d55dd379381873d.tar.bz2 |
Issue #19515: Remove identifiers duplicated in the same file.
Patch written by Andrei Dorian Duma.
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 3c5173f..087ae9b 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -51,6 +51,8 @@ static PyObject *multibytecodec_encode(MultibyteCodec *, #define MBENC_RESET MBENC_MAX<<1 /* reset after an encoding session */ +_Py_IDENTIFIER(write); + static PyObject * make_tuple(PyObject *object, Py_ssize_t len) { @@ -1569,7 +1571,6 @@ mbstreamwriter_iwrite(MultibyteStreamWriterObject *self, PyObject *unistr) { PyObject *str, *wr; - _Py_IDENTIFIER(write); str = encoder_encode_stateful(STATEFUL_ECTX(self), unistr, 0); if (str == NULL) @@ -1639,7 +1640,6 @@ mbstreamwriter_reset(MultibyteStreamWriterObject *self) assert(PyBytes_Check(pwrt)); if (PyBytes_Size(pwrt) > 0) { PyObject *wr; - _Py_IDENTIFIER(write); wr = _PyObject_CallMethodId(self->stream, &PyId_write, "O", pwrt); if (wr == NULL) { |