diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-15 06:26:28 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-08-15 06:26:28 (GMT) |
commit | 269e3ee3db73bcef5465b36a24b9b774dd8923ec (patch) | |
tree | d221fe0f27bd2d8a69bdda70d2db3d200fe4d283 /Objects | |
parent | 7ec7fc4c3b67f77654b6964a37500d1421dc7f04 (diff) | |
parent | ee8d998ecfd7d7fec71610adef1127d6d95ca843 (diff) | |
download | cpython-269e3ee3db73bcef5465b36a24b9b774dd8923ec.zip cpython-269e3ee3db73bcef5465b36a24b9b774dd8923ec.tar.gz cpython-269e3ee3db73bcef5465b36a24b9b774dd8923ec.tar.bz2 |
#12266: merge with 3.2.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 61b253d..9d8fcb5 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6733,13 +6733,13 @@ fixcapitalize(PyUnicodeObject *self) if (len == 0) return 0; - if (Py_UNICODE_ISLOWER(*s)) { + if (!Py_UNICODE_ISUPPER(*s)) { *s = Py_UNICODE_TOUPPER(*s); status = 1; } s++; while (--len > 0) { - if (Py_UNICODE_ISUPPER(*s)) { + if (!Py_UNICODE_ISLOWER(*s)) { *s = Py_UNICODE_TOLOWER(*s); status = 1; } |