'Saves the current configuration options into the active torrc file.
:raises:
* :class:`stem.ControllerError` if the call fails
* :class:`stem.OperationFailed` if the client is unable to save
the configuration file'

def save_conf(self):

    response = self.msg('SAVECONF')
    stem.response.convert('SINGLELINE', response)
    if response.is_ok():
        return True
    elif (response.code == '551'):
        raise stem.OperationFailed(response.code, response.message)
    else:
        raise stem.ProtocolError('SAVECONF    returned    unexpected    response    code')
