We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30c0a1 commit b31f1bcCopy full SHA for b31f1bc
Python/codecs.c
@@ -573,7 +573,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
573
if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) {
574
PyObject *restuple;
575
PyObject *object;
576
- Py_ssize_t i, o;
+ Py_ssize_t i;
577
Py_ssize_t start;
578
Py_ssize_t end;
579
PyObject *res;
@@ -612,7 +612,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
612
}
613
outp = PyUnicode_1BYTE_DATA(res);
614
/* generate replacement */
615
- for (i = start, o = 0; i < end; ++i) {
+ for (i = start; i < end; ++i) {
616
int digits;
617
int base;
618
ch = PyUnicode_READ_CHAR(object, i);
0 commit comments