diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-04-26 01:01:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-04-26 01:01:58 (GMT) |
commit | 2a574aed7e1ab12ef6f8b595625638c17d5912fa (patch) | |
tree | 2bd6e7b5c738ca17b0c3d49c6ff40c99e8ecb420 /Objects | |
parent | 47c975385d2c05d6394d63adbbf8691b0eb5e425 (diff) | |
download | cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.zip cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.tar.gz cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.tar.bz2 |
Merged revisions 71947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71947 | martin.v.loewis | 2009-04-26 02:53:18 +0200 (So, 26 Apr 2009) | 3 lines
Issue #4971: Fix titlecase for characters that are their own
titlecase, but not their own uppercase.
........
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodectype.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Objects/unicodectype.c b/Objects/unicodectype.c index ebfb5b7..2afafb8 100644 --- a/Objects/unicodectype.c +++ b/Objects/unicodectype.c @@ -76,12 +76,7 @@ int _PyUnicode_IsLinebreak(register const Py_UNICODE ch) Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch) { const _PyUnicode_TypeRecord *ctype = gettyperecord(ch); - int delta; - - if (ctype->title) - delta = ctype->title; - else - delta = ctype->upper; + int delta = ctype->title; if (ctype->flags & NODELTA_MASK) return delta; |