From 1cf1498b2581673c9ab265b448ec5d0d9766e3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Kub=C3=AD=C4=8Dek?= Date: Fri, 28 Feb 2025 18:40:18 +0100 Subject: [PATCH] examples: move save_temporary_file_as_pdf to tools --- examples/tools.py | 7 +++++++ superfaktura/utils/__init__.py | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 examples/tools.py diff --git a/examples/tools.py b/examples/tools.py new file mode 100644 index 0000000..78ceddf --- /dev/null +++ b/examples/tools.py @@ -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) diff --git a/superfaktura/utils/__init__.py b/superfaktura/utils/__init__.py index 48061e1..e69de29 100644 --- a/superfaktura/utils/__init__.py +++ b/superfaktura/utils/__init__.py @@ -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)