[docs]classIRCFoldedCase(FoldedCase):""" A version of FoldedCase that honors the IRC specification for lowercased strings (RFC 1459). >>> IRCFoldedCase('Foo^').lower() 'foo~' >>> IRCFoldedCase('[this]') == IRCFoldedCase('{THIS}') True >>> IRCFoldedCase('[This]').casefold() '{this}' >>> IRCFoldedCase().lower() '' """translation=dict(zip(map(ord,r"[]\^"),map(ord,r"{}|~"),))