summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-04-26 00:53:18 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-04-26 00:53:18 (GMT)
commit99f277933e172cd035f049f2de4a9033f43a55dc (patch)
tree9cce0c07dc3c71e2d0e6dfb888690c0fc51f2c14 /Objects
parent068f06568be288b8628a4e24118503e4d9b7af1b (diff)
downloadcpython-99f277933e172cd035f049f2de4a9033f43a55dc.zip
cpython-99f277933e172cd035f049f2de4a9033f43a55dc.tar.gz
cpython-99f277933e172cd035f049f2de4a9033f43a55dc.tar.bz2
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.c7
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;