@staticmethod
    def from_string(s):
        if len(s) > 512:
            raise Error("Message must not be longer than 512 characters")

        prefix, command, args = parsemsg(s)

        return Message(command, *args, prefix=prefix)
dataset/ETHPy150Open circuits/circuits/circuits/protocols/irc/message.py/Message.from_string/original