updated _emoji_char_class docstring

This commit is contained in:
Joshua Chin 2015-07-07 14:58:50 -04:00
parent 5342ea3033
commit 10b5727725

View File

@ -16,6 +16,7 @@ def _emoji_char_class():
ranges = [] ranges = []
for i, c in enumerate(chardata.CHAR_CLASS_STRING): for i, c in enumerate(chardata.CHAR_CLASS_STRING):
# c represents the character class (3 corresponds to emoji)
if c == '3' and i >= 0x2600 and i != 0xfffd: if c == '3' and i >= 0x2600 and i != 0xfffd:
if ranges and i == ranges[-1][1] + 1: if ranges and i == ranges[-1][1] + 1:
ranges[-1][1] = i ranges[-1][1] = i