mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +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':
 | 
			
		||||
                    status = 'approved'
 | 
			
		||||
                    break
 | 
			
		||||
            if any(h.type == 'unblock' for h in self.hints):
 | 
			
		||||
                status = 'approved'
 | 
			
		||||
            excusedata['manual-approval-status'] = status
 | 
			
		||||
        if self.hints:
 | 
			
		||||
            hint_info = [{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user