import encodings.utf_8


def lookup(encoding):
    """lookup(encoding) -> CodecInfo
    Looks up a codec tuple in the Python codec registry and returns
    a CodecInfo object."""
    if encoding in ('utf-8', 'utf_8'):
       return encodings.utf_8.getregentry()

    LookupError(encoding)