From: Victor Stinner Date: Sun, 14 Apr 2013 17:17:42 +0000 (+0200) Subject: Minor change: fix character in do_strip() for the ASCII case X-Git-Tag: v3.4.0a1~916 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d92e078c8d17e66c09f8e279f3efcab6932303a2;p=python Minor change: fix character in do_strip() for the ASCII case --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dfc3cf21c9..17a19db34b 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--;