#NEWLINE# def convert_identifier_to_key( self , identifier ) : #NEWLINE# #INDENT# '\n        Takes an identifier (like a username or IP address) and converts it\n        into a key usable by the cache system.\n        ' #NEWLINE# bits = [ char for char in identifier if ( char . isalnum ( ) or ( char in _other_allowed_chars ) ) ] #NEWLINE# bits . append ( '_accesses' ) #NEWLINE# return '' . join ( bits )