[Python-checkins] cpython: PyCodec_XMLCharRefReplaceError(): Remove unused variable
victor.stinner
python-checkins at python.org
Fri Nov 4 21:35:03 CET 2011
http://hg.python.org/cpython/rev/2df7d749ee3a
changeset: 73358:2df7d749ee3a
parent: 73356:b3543ef9b445
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Nov 04 21:29:10 2011 +0100
summary:
PyCodec_XMLCharRefReplaceError(): Remove unused variable
files:
Python/codecs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Python/codecs.c b/Python/codecs.c
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -573,7 +573,7 @@
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 @@
}
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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list