def _is_punctuation(self, char):
cp = ord(char)<EOL>group0 = cp >= <NUM_LIT> and cp <= <NUM_LIT><EOL>group1 = cp >= <NUM_LIT> and cp <= <NUM_LIT:64><EOL>group2 = cp >= <NUM_LIT> and cp <= <NUM_LIT><EOL>group3 = cp >= <NUM_LIT> and cp <= <NUM_LIT><EOL>if (group0 or group1 or group2 or group3):<EOL><INDENT>return True<EOL><DEDENT>cat = unicodedata.category(char)<EOL>if cat.startswith('<STR_LIT:P>'):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Checks whether `chars` is a punctuation character.