From 0238472033e0ee4fe7e25e9f9b8d376c13faf4ca Mon Sep 17 00:00:00 2001 From: Eric Lapouyade Date: Fri, 1 Oct 2021 12:29:56 +0200 Subject: [PATCH] Changed code to be python < 3.6 compatible --- CHANGES.rst | 2 +- docxtpl/__init__.py | 2 +- docxtpl/__main__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 513eddb..5626c55 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,4 @@ -0.14.0 (2021-09-30) +0.14.1 (2021-10-01) ------------------- - One can now use python -m docxtpl on command line to generate a docx from a template and a json file as a context diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index 563b398..445b3f6 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -4,7 +4,7 @@ Created : 2015-03-12 @author: Eric Lapouyade """ -__version__ = '0.14.0' +__version__ = '0.14.1' # flake8: noqa from .inline_image import InlineImage diff --git a/docxtpl/__main__.py b/docxtpl/__main__.py index bf2604a..5fc20e9 100644 --- a/docxtpl/__main__.py +++ b/docxtpl/__main__.py @@ -118,7 +118,7 @@ def render_docx(doc, json_data): raise RuntimeError('An error ocurred while trying to render the docx') -def save_file(doc: DocxTemplate, parsed_args: dict) -> None: +def save_file(doc, parsed_args): try: output_path = parsed_args[OUTPUT_ARG] doc.save(output_path)