projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30c0a1
)
PyCodec_XMLCharRefReplaceError(): Remove unused variable
author
Victor Stinner
<victor.stinner@haypocalc.com>
Fri, 4 Nov 2011 20:29:10 +0000
(21:29 +0100)
committer
Victor Stinner
<victor.stinner@haypocalc.com>
Fri, 4 Nov 2011 20:29:10 +0000
(21:29 +0100)
Python/codecs.c
patch
|
blob
|
history
diff --git
a/Python/codecs.c
b/Python/codecs.c
index dcc7c988d64e400f72e62975c92074a2d6a29961..07fe2eee2c8bcbb34d319a64d170444cbbaa424a 100644
(file)
--- 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);