def __setattr__(self, name, value):
        """
        We override the default behavior so that we can mark
        HiddenServices as unsaved in our TorConfig object if anything
        is changed.
        """
        watched_params = ['dir', 'version', 'authorize_client', 'ports']
        if name in watched_params and self.conf:
            self.conf.mark_unsaved('HiddenServices')
        if isinstance(value, list):
            value = _ListWrapper(value, functools.partial(
                self.conf.mark_unsaved, 'HiddenServices'))
        self.__dict__[name] = value
def __setattr__ ( self , name , value ) : watched_params = [ 'dir' , 'version' , 'authorize_client' , 'ports' ] if name in watched_params and self . conf : self . conf . mark_unsaved ( 'HiddenServices' ) if isinstance ( value , list ) : value = _ListWrapper ( value , functools . partial ( self . conf . mark_unsaved , 'HiddenServices' ) ) self . __dict__ [ name ] = value
We override the default behavior so that we can mark
        HiddenServices as unsaved in our TorConfig object if anything
        is changed.