mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-10-31 16:44:13 +00:00 
			
		
		
		
	Replace a for-loop with any()
This commit is contained in:
		
							parent
							
								
									70947f4c21
								
							
						
					
					
						commit
						8753649e54
					
				| @ -308,10 +308,8 @@ class Excuse(object): | ||||
|                 dep_data['unsatisfiable-dependencies'] = {x: sorted(self.unsat_deps[x]) for x in self.unsat_deps} | ||||
|         if self.needs_approval: | ||||
|             status = 'not-approved' | ||||
|             for h in self.hints: | ||||
|                 if h.type == 'unblock': | ||||
|             if any(h.type == 'unblock' for h in self.hints): | ||||
|                 status = 'approved' | ||||
|                     break | ||||
|             excusedata['manual-approval-status'] = status | ||||
|         if self.hints: | ||||
|             hint_info = [{ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user