Returns all contained properties associated with 'feature

def get_properties(self, feature):
        """Returns all contained properties associated with 'feature'"""
        if not isinstance(feature, b2.build.feature.Feature):
            feature = b2.build.feature.get(feature)
        assert isinstance(feature, b2.build.feature.Feature)

        result = []
        for p in self.all_:
            if p.feature == feature:
                result.append(p)
        return result