def wildcard_allowed_principals(self, pattern=None):
        """
        Find statements which allow wildcard principals.

        A pattern can be specified for the wildcard principal
        """

        wildcard_allowed = []

        for statement in self.statements:
            if statement.wildcard_principals(pattern) and statement.effect == "Allow":
                wildcard_allowed.append(statement)

        return wildcard_allowed
def wildcard_allowed_principals ( self , pattern = None ) : wildcard_allowed = [ ] for statement in self . statements : if statement . wildcard_principals ( pattern ) and statement . effect == "Allow" : wildcard_allowed . append ( statement ) return wildcard_allowed
Find statements which allow wildcard principals.

        A pattern can be specified for the wildcard principal