mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
PyCodec_XMLCharRefReplaceError(): Remove unused variable
This commit is contained in:
parent
e30c0a1014
commit
b31f1bcd99
1 changed files with 2 additions and 2 deletions
|
@ -573,7 +573,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
|
|||
if (PyObject_IsInstance(exc, PyExc_UnicodeEncodeError)) {
|
||||
PyObject *restuple;
|
||||
PyObject *object;
|
||||
Py_ssize_t i, o;
|
||||
Py_ssize_t i;
|
||||
Py_ssize_t start;
|
||||
Py_ssize_t end;
|
||||
PyObject *res;
|
||||
|
@ -612,7 +612,7 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
|
|||
}
|
||||
outp = PyUnicode_1BYTE_DATA(res);
|
||||
/* generate replacement */
|
||||
for (i = start, o = 0; i < end; ++i) {
|
||||
for (i = start; i < end; ++i) {
|
||||
int digits;
|
||||
int base;
|
||||
ch = PyUnicode_READ_CHAR(object, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue