mirror of
				https://github.com/Eledio/superfaktura-client.git
				synced 2025-10-31 16:11:20 +01:00 
			
		
		
		
	examples: move save_temporary_file_as_pdf to tools
This commit is contained in:
		
							
								
								
									
										7
									
								
								examples/tools.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								examples/tools.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
|  | ||||
|  | ||||
| def save_file_as_pdf( | ||||
|     input_data: bytes, output_path: str = "output.pdf" | ||||
| ) -> None: | ||||
|     with open(output_path, "wb") as f: | ||||
|         f.write(input_data) | ||||
| @@ -1,7 +0,0 @@ | ||||
|  | ||||
|  | ||||
| def save_temporary_file_as_pdf( | ||||
|     input_data: bytes, output_path: str = "output.pdf" | ||||
| ) -> None: | ||||
|     with open(output_path, "wb") as f: | ||||
|         f.write(input_data) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user