mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Merge pull request #331 from teamorchard/use-pyyaml-safe-load
Update to use pyyaml safe_load()
This commit is contained in:
		
							
								
								
									
										1
									
								
								AUTHORS
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								AUTHORS
									
									
									
									
									
								
							@@ -11,6 +11,7 @@ Dmytro Katyukha
 | 
			
		||||
Gerard Marull-Paretas
 | 
			
		||||
Hark
 | 
			
		||||
Joel Lehtonen
 | 
			
		||||
Justin Vieira
 | 
			
		||||
kennedy
 | 
			
		||||
Kristi
 | 
			
		||||
ldos
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ else:
 | 
			
		||||
if full_load:
 | 
			
		||||
    logger.debug('Loading and pickling capabilities')
 | 
			
		||||
    with open(capabilities_path) as cp, open(pickle_path, 'wb') as pp:
 | 
			
		||||
        CAPABILITIES = yaml.load(cp)
 | 
			
		||||
        CAPABILITIES = yaml.safe_load(cp)
 | 
			
		||||
        pickle.dump(CAPABILITIES, pp, protocol=2)
 | 
			
		||||
 | 
			
		||||
logger.debug('Finished loading capabilities took %.2fs', time.time() - t0)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user