Commit d92e078c authored by Victor Stinner's avatar Victor Stinner

Minor change: fix character in do_strip() for the ASCII case

parent f033510f
...@@ -11705,7 +11705,7 @@ do_strip(PyObject *self, int striptype) ...@@ -11705,7 +11705,7 @@ do_strip(PyObject *self, int striptype)
i = 0; i = 0;
if (striptype != RIGHTSTRIP) { if (striptype != RIGHTSTRIP) {
while (i < len) { while (i < len) {
Py_UCS4 ch = data[i]; Py_UCS1 ch = data[i];
if (!_Py_ascii_whitespace[ch]) if (!_Py_ascii_whitespace[ch])
break; break;
i++; i++;
...@@ -11716,7 +11716,7 @@ do_strip(PyObject *self, int striptype) ...@@ -11716,7 +11716,7 @@ do_strip(PyObject *self, int striptype)
if (striptype != LEFTSTRIP) { if (striptype != LEFTSTRIP) {
j--; j--;
while (j >= i) { while (j >= i) {
Py_UCS4 ch = data[j]; Py_UCS1 ch = data[j];
if (!_Py_ascii_whitespace[ch]) if (!_Py_ascii_whitespace[ch])
break; break;
j--; j--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment