(self, is_immutable)
Set immutability to is_immutable and recursively apply the setting
        to all nested CfgNodes.
Set immutability to is_immutable and recursively apply the setting
        to all nested CfgNodes.
Set immutability to is_immutable and recursively apply the setting to all nested CfgNodes .
def _immutable(self, is_immutable):
        """Set immutability to is_immutable and recursively apply the setting
        to all nested CfgNodes.
        """
        self.__dict__[CfgNode.IMMUTABLE] = is_immutable
        # Recursively set immutable state
        for v in self.__dict__.values():
            if isinstance(v, CfgNode):
                v._immutable(is_immutable)
        for v in self.values():
            if isinstance(v, CfgNode):
                v._immutable(is_immutable)
def _immutable ( self , is_immutable ) : self . __dict__ [ CfgNode . IMMUTABLE ] = is_immutable # Recursively set immutable state for v in self . __dict__ . values ( ) : if isinstance ( v , CfgNode ) : v . _immutable ( is_immutable ) for v in self . values ( ) : if isinstance ( v , CfgNode ) : v . _immutable ( is_immutable )