diff options
author | Kingsley M <37349466+kingdom5500@users.noreply.github.com> | 2019-04-12 16:35:39 +0100 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-04-12 08:35:39 -0700 |
commit | b015fc86f7b1f35283804bfee788cce0a5495df7 (patch) | |
tree | 71d67a16fb6f713d49f1ffbc13dc99722b3e2905 /Objects/unicodeobject.c | |
parent | f13c5c8b9401a9dc19e95d8b420ee100ac022208 (diff) | |
download | cpython-git-b015fc86f7b1f35283804bfee788cce0a5495df7.tar.gz |
bpo-36549: str.capitalize now titlecases the first character instead of uppercasing it (GH-12804)
Diffstat (limited to 'Objects/unicodeobject.c')
-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 c0b345be7e..e00dc37974 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]; |