qiskit/transpiler/fencedobjs.py
def _check_if_fenced(self, name):
        """
        Checks if the attribute name is in the list of attributes to protect. If so, raises
        TranspilerAccessError.

        Args:
            name (string): the attribute name to check

        Raises:
            TranspilerAccessError: when name is the list of attributes to protect.
        """
        if name in object.__getattribute__(self, '_attributes_to_fence'):
            raise TranspilerAccessError("The fenced %s has the property %s protected" %
                                        (type(object.__getattribute__(self, '_wrapped')), name))
def _check_if_fenced(self, name):
        if name in object.__getattribute__(self, '_attributes_to_fence'):
            raise TranspilerAccessError("The fenced %s has the property %s protected" %
                                        (type(object.__getattribute__(self, '_wrapped')), name))
def _check_if_fenced ( self , name ) : if name in object . __getattribute__ ( self , '_attributes_to_fence' ) : raise TranspilerAccessError ( "The fenced %s has the property %s protected" % ( type ( object . __getattribute__ ( self , '_wrapped' ) ) , name ) )
Checks if the attribute name is in the list of attributes to protect. If so, raises
        TranspilerAccessError.

        Args:
            name (string): the attribute name to check

        Raises:
            TranspilerAccessError: when name is the list of attributes to protect.
Checks if the attribute name is in the list of attributes to protect . If so raises TranspilerAccessError .