bakery/bakery.py
def find_resource(self, resource_id):
        """ Return an instance based on the id.
        """
        for r in self.resources:
            if r.id == resource_id:
                return r
        return None
 Return an instance based on the id.
        
Return an instance based on the id.
Return an instance based on the id .
def find_resource(self, resource_id):
        for r in self.resources:
            if r.id == resource_id:
                return r
        return None
def find_resource ( self , resource_id ) : for r in self . resources : if r . id == resource_id : return r return None
Return an instance based on the id.
Return an instance based on the id .
""" Return an instance based on the id.
        """
self
resource_id