mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Patch #1213831: Fix typo in unicodedata._getcode.
Will backport to Python 2.4.
This commit is contained in:
parent
9e28107ce8
commit
8b291e2d66
2 changed files with 3 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
|
|||
pos += len;
|
||||
find_syllable(pos, &len, &T, TCount, 2);
|
||||
pos += len;
|
||||
if (V != -1 && V != -1 && T != -1 && pos-name == namelen) {
|
||||
if (L != -1 && V != -1 && T != -1 && pos-name == namelen) {
|
||||
*code = SBase + (L*VCount+V)*TCount + T;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue