Skip to content

Commit b31f1bc

Browse files
author
Victor Stinner
committed
PyCodec_XMLCharRefReplaceError(): Remove unused variable
1 parent e30c0a1 commit b31f1bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/codecs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
573573
if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) {
574574
PyObject *restuple;
575575
PyObject *object;
576-
Py_ssize_t i, o;
576+
Py_ssize_t i;
577577
Py_ssize_t start;
578578
Py_ssize_t end;
579579
PyObject *res;
@@ -612,7 +612,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
612612
}
613613
outp = PyUnicode_1BYTE_DATA(res);
614614
/* generate replacement */
615-
for (i = start, o = 0; i < end; ++i) {
615+
for (i = start; i < end; ++i) {
616616
int digits;
617617
int base;
618618
ch = PyUnicode_READ_CHAR(object, i);

0 commit comments

Comments
 (0)