mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-25 05:23:58 -07:00 
			
		
		
		
	Fix py3 docs build (#33345)
* Open file in binary mode to support py3 writes using bytes * Update sort filter to use an attribute, so that py3 can sort dictionaries
This commit is contained in:
		
					parent
					
						
							
								449a0f33e1
							
						
					
				
			
			
				commit
				
					
						84b8f674a7
					
				
			
		
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -62,7 +62,7 @@ def main(args): | |||
|     output_name = os.path.join(output_dir, template_file.replace('.j2', '')) | ||||
|     temp_vars = {'config_options': config_options} | ||||
| 
 | ||||
|     with open(output_name, 'w') as f: | ||||
|     with open(output_name, 'wb') as f: | ||||
|         f.write(template.render(temp_vars).encode('utf-8')) | ||||
| 
 | ||||
|     return 0 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue