mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	tests: use yaml.safe_load as yaml.load is deprecated
This commit is contained in:
		
							parent
							
								
									2fc265be91
								
							
						
					
					
						commit
						747c67854a
					
				@ -116,7 +116,7 @@ class T(TestBase):
 | 
			
		||||
 | 
			
		||||
        # convert excuses to source indexed dict
 | 
			
		||||
        excuses_dict = {}
 | 
			
		||||
        for s in yaml.load(excuses_yaml)['sources']:
 | 
			
		||||
        for s in yaml.safe_load(excuses_yaml)['sources']:
 | 
			
		||||
            excuses_dict[s['source']] = s
 | 
			
		||||
 | 
			
		||||
        if 'SHOW_EXCUSES' in os.environ:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user