summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-04-14 17:17:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-04-14 17:17:42 (GMT)
commitd92e078c8d17e66c09f8e279f3efcab6932303a2 (patch)
tree605d6ff77c9be2449da293b75aa63e5f139c0d6d
parentf033510fee836a98500fb87407409d0ad1a4d4d7 (diff)
downloadcpython-d92e078c8d17e66c09f8e279f3efcab6932303a2.zip
cpython-d92e078c8d17e66c09f8e279f3efcab6932303a2.tar.gz
cpython-d92e078c8d17e66c09f8e279f3efcab6932303a2.tar.bz2
Minor change: fix character in do_strip() for the ASCII case
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index dfc3cf2..17a19db 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -11705,7 +11705,7 @@ do_strip(PyObject *self, int striptype)
i = 0;
if (striptype != RIGHTSTRIP) {
while (i < len) {
- Py_UCS4 ch = data[i];
+ Py_UCS1 ch = data[i];
if (!_Py_ascii_whitespace[ch])
break;
i++;
@@ -11716,7 +11716,7 @@ do_strip(PyObject *self, int striptype)
if (striptype != LEFTSTRIP) {
j--;
while (j >= i) {
- Py_UCS4 ch = data[j];
+ Py_UCS1 ch = data[j];
if (!_Py_ascii_whitespace[ch])
break;
j--;