From 2e0ae0267f6fb1e950371e6ef40dd3de4f1c4d66 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 23 Apr 2023 09:36:24 +0200 Subject: [PATCH] updated the update_doc module for the new example unit --- update_doc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_doc b/update_doc index 5178493..3e36c26 100755 --- a/update_doc +++ b/update_doc @@ -11,7 +11,7 @@ regex = re.compile("DOCUMENTATION *= *r?(?P\"{3}|'{3})(---)?.*?(?P=quote) if __name__ == "__main__": for modfile in moduledir.iterdir(): - if modfile.name in ( "__init__.py", "__pycache__"): + if modfile.name in ( "__init__.py", "__pycache__", "unit.py.example"): continue mod = importlib.import_module(".".join((modfile.parts[:-1])+(modfile.stem,))) if hasattr(mod, "Module"): @@ -36,5 +36,6 @@ if __name__ == "__main__": continue newmod = "{pre}DOCUMENTATION = {quote}{doc}{quote}{post}".format(pre=moddata[:match.start()], quote=match.group("quote"), doc=moddoc, post=moddata[match.end():]) modfile.write_text(newmod) + print("updated the documentation of module {}".format(module.name)) # code: python