[Python-checkins] cpython: Minor change: fix character in do_strip() for the ASCII case

victor.stinner python-checkins at python.org
Sun Apr 14 19:31:48 CEST 2013


http://hg.python.org/cpython/rev/46f781a8d64f
changeset:   83387:46f781a8d64f
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sun Apr 14 19:17:42 2013 +0200
summary:
  Minor change: fix character in do_strip() for the ASCII case

files:
  Objects/unicodeobject.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -11705,7 +11705,7 @@
         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 @@
         if (striptype != LEFTSTRIP) {
             j--;
             while (j >= i) {
-                Py_UCS4 ch = data[j];
+                Py_UCS1 ch = data[j];
                 if (!_Py_ascii_whitespace[ch])
                     break;
                 j--;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list