def from_text(text):

    # 'text' can also be a file, but we don't publish that fact
    # since it's an implementation detail.  The official file
    # interface is from_file().

    m = Message()

    reader = _TextReader(text, m)
    reader.read()

    return m
Convert the text format message into a message object.
dataset/ETHPy150Open catap/namebench/nb_third_party/dns/message.py/from_text