mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	fix docs failing due to pickle protocol in mixed env
When executing a tox-run a pickle file will be created. If the docs are built after the py3 task, it will fail due to incompatible pickle-protocols. See https://stackoverflow.com/a/25843743/4244236 for reference.
This commit is contained in:
		@@ -38,7 +38,7 @@ 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)
 | 
			
		||||
        pickle.dump(CAPABILITIES, pp)
 | 
			
		||||
        pickle.dump(CAPABILITIES, pp, protocol=2)
 | 
			
		||||
 | 
			
		||||
logger.debug('Finished loading capabilities took %.2fs', time.time() - t0)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user