def _is_whitespace(self, char):
<EOL>if char in ['<STR_LIT:U+0020>', '<STR_LIT:\t>', '<STR_LIT:\n>', '<STR_LIT:\r>']:<EOL><INDENT>return True<EOL><DEDENT>cat = unicodedata.category(char)<EOL>if cat == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Checks whether `chars` is a whitespace character.