summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-04 20:29:10 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-04 20:29:10 (GMT)
commitb31f1bcd9901c41931bd7c9898f1181ecd2f6b36 (patch)
tree41c35a27fc1939f9be8d48eef97f51d0bef460b1 /Python/codecs.c
parente30c0a1014fb8f7978f608d6c7f430842f685075 (diff)
downloadcpython-b31f1bcd9901c41931bd7c9898f1181ecd2f6b36.zip
cpython-b31f1bcd9901c41931bd7c9898f1181ecd2f6b36.tar.gz
cpython-b31f1bcd9901c41931bd7c9898f1181ecd2f6b36.tar.bz2
PyCodec_XMLCharRefReplaceError(): Remove unused variable
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index dcc7c98..07fe2ee 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -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);