Merge commit 'df247b7cab6e28e691e1db5b4abe7f0649e3b339'

This commit is contained in:
Reece H. Dunn
2018-05-03 21:33:59 +01:00
4 changed files with 9 additions and 20 deletions
+1 -4
View File
@@ -79,10 +79,7 @@ def isblank(data): # word separator
return 0
def ispunct(data):
if data.get('GeneralCategory', 'Cn')[0] in 'P':
return 1
else:
return 0
return 1 if isgraph(data) and not isalnum(data) else 0
def isprint(data):
if data.get('GeneralCategory', 'Cn')[0] in 'LMNPSZ': # not in 'CI'