mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
#12266: merge with 3.2.
This commit is contained in:
commit
269e3ee3db
3 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue