mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Oops, revert unwanted changes
This commit is contained in:
parent
abc649ddbe
commit
b0800dc53b
1 changed files with 6 additions and 18 deletions
|
@ -10628,9 +10628,6 @@ unicode_title(PyObject *self)
|
|||
{
|
||||
if (PyUnicode_READY(self) == -1)
|
||||
return NULL;
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_case_operation(self, ascii_do_title);
|
||||
else
|
||||
return case_operation(self, do_title);
|
||||
}
|
||||
|
||||
|
@ -10647,9 +10644,6 @@ unicode_capitalize(PyObject *self)
|
|||
return NULL;
|
||||
if (PyUnicode_GET_LENGTH(self) == 0)
|
||||
return unicode_result_unchanged(self);
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_case_operation(self, ascii_do_capitalize);
|
||||
else
|
||||
return case_operation(self, do_capitalize);
|
||||
}
|
||||
|
||||
|
@ -10665,7 +10659,6 @@ unicode_casefold(PyObject *self)
|
|||
return NULL;
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_upper_or_lower(self, 1);
|
||||
else
|
||||
return case_operation(self, do_casefold);
|
||||
}
|
||||
|
||||
|
@ -11900,7 +11893,6 @@ unicode_lower(PyObject *self)
|
|||
return NULL;
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_upper_or_lower(self, 1);
|
||||
else
|
||||
return case_operation(self, do_lower);
|
||||
}
|
||||
|
||||
|
@ -12792,9 +12784,6 @@ unicode_swapcase(PyObject *self)
|
|||
{
|
||||
if (PyUnicode_READY(self) == -1)
|
||||
return NULL;
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_case_operation(self, ascii_do_swapcase);
|
||||
else
|
||||
return case_operation(self, do_swapcase);
|
||||
}
|
||||
|
||||
|
@ -12945,7 +12934,6 @@ unicode_upper(PyObject *self)
|
|||
return NULL;
|
||||
if (PyUnicode_IS_ASCII(self))
|
||||
return ascii_upper_or_lower(self, 0);
|
||||
else
|
||||
return case_operation(self, do_upper);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue