From 600ce5b874e676820ef64d453c16a13c0048bd2b Mon Sep 17 00:00:00 2001 From: Alexander Schlemmer <alexander@mail-schlemmer.de> Date: Thu, 23 Mar 2023 18:58:50 +0100 Subject: [PATCH] REVIEW: documented change in signature of function save_debug_tree --- CHANGELOG.md | 3 +++ src/caoscrawler/crawl.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08b47840..3a89918a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ConverterValidationError when the YAML header cannot be read instead of silently not matching. - Refactoring of the crawl.py module: Now there is a separate scanner module handling the collecting of information that is independent of CaosDB itself. +- The signature of the function ``save_debug_data`` was changed to explicitely take the debug_tree + as its first argument. This change was necessary, as the debug_tree is no longer saved as + member field of the Crawler class. ### Deprecated ### diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index 7de19275..ace76638 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -918,6 +918,11 @@ ____________________\n""".format(i + 1, len(pending_changes)) + str(el[3])) return res def save_debug_data(self, debug_tree: DebugTree, filename: str): + """ + Save the information contained in a debug_tree to a file named filename. + """ + + paths: dict[str, Union[dict, list]] = dict() def flatten_debug_info(key): -- GitLab