#NEWLINE# def _sheep_available( self , identity ) : #NEWLINE# #INDENT# 'Called internally whenever a new sheep becomes available.' #NEWLINE# sheep_environment = sheep_environment . _flock [ identity ] #NEWLINE# for i in self . _request_queue . keys ( ) [ : ] : #NEWLINE# #INDENT# if FlockManager . check_environments ( i . environment , sheep_environment ) : #NEWLINE# #INDENT# if self . _dispatch_match_found ( identity , i ) : #NEWLINE# #INDENT# break