'Sends the configuration text to Tor and loads it as if it has been read from
the torrc.
:param str configtext: the configuration text
:raises: :class:`stem.ControllerError` if the call fails'

def load_conf(self, configtext):

    response = self.msg(('LOADCONF\n%s' % configtext))
    stem.response.convert('SINGLELINE', response)
    if (response.code in ('552', '553')):
        if ((response.code == '552') and response.message.startswith('Invalid    config    file:    Failed    to    parse/validate    config:    Unknown    option')):
            raise stem.InvalidArguments(response.code, response.message, [response.message[70:(response.message.find('.', 70) - 1)]])
        raise stem.InvalidRequest(response.code, response.message)
    elif (not response.is_ok()):
        raise stem.ProtocolError(('+LOADCONF    Received    unexpected    response\n%s' % str(response)))
