diff options
author | Kingsley M <37349466+kingdom5500@users.noreply.github.com> | 2019-04-12 15:35:39 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-04-12 15:35:39 (GMT) |
commit | b015fc86f7b1f35283804bfee788cce0a5495df7 (patch) | |
tree | 71d67a16fb6f713d49f1ffbc13dc99722b3e2905 /Objects | |
parent | f13c5c8b9401a9dc19e95d8b420ee100ac022208 (diff) | |
download | cpython-b015fc86f7b1f35283804bfee788cce0a5495df7.zip cpython-b015fc86f7b1f35283804bfee788cce0a5495df7.tar.gz cpython-b015fc86f7b1f35283804bfee788cce0a5495df7.tar.bz2 |
bpo-36549: str.capitalize now titlecases the first character instead of uppercasing it (GH-12804)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c0b345b..e00dc37 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -9675,7 +9675,7 @@ do_capitalize(int kind, void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *ma Py_UCS4 c, mapped[3]; c = PyUnicode_READ(kind, data, 0); - n_res = _PyUnicode_ToUpperFull(c, mapped); + n_res = _PyUnicode_ToTitleFull(c, mapped); for (j = 0; j < n_res; j++) { *maxchar = Py_MAX(*maxchar, mapped[j]); res[k++] = mapped[j]; |