isalpha: use the Alphabetic derived core property to check that the character is in the alpha class.

This commit is contained in:
Reece H. Dunn
2017-02-12 21:20:03 +00:00
parent b38659582f
commit cbddf092c9
2 changed files with 261 additions and 6 deletions
+1 -4
View File
@@ -95,10 +95,7 @@ def isalnum(data):
return 0
def isalpha(data):
if data.get('GeneralCategory', 'Cn')[0] in 'L':
return 1
else:
return 0
return data.get('Alphabetic', 0)
def isupper(data):
if data.get('Uppercase', 0):