def _identifier(self, token):
    'Tokenizes an identifier.'
    if self.anycase:
        uctoken = token.upper()
    else:
        uctoken = token
    toktype = self.lextable.get(uctoken)
    if (toktype is not None):
        return (toktype, uctoken)
    else:
        return ('IDENT', token)
Tokenizes an identifier.
def _identifier(self, token):
    
    if self.anycase:
        uctoken = token.upper()
    else:
        uctoken = token
    toktype = self.lextable.get(uctoken)
    if (toktype is not None):
        return (toktype, uctoken)
    else:
        return ('IDENT', token)