def _is_whitespace(char):
    'Checks whether `chars` is a whitespace character.'
    if ((char == ' ') or (char == '\t') or (char == '\n') or (char == '\r')):
        return True
    cat = unicodedata.category(char)
    if (cat == 'Zs'):
        return True
    return False
Checks whether `chars` is a whitespace character.
def _is_whitespace(char):
    
    if ((char == ' ') or (char == '\t') or (char == '\n') or (char == '\r')):
        return True
    cat = unicodedata.category(char)
    if (cat == 'Zs'):
        return True
    return False