From ba643e2744ee85770783a6c78b1b6762dff5e95c Mon Sep 17 00:00:00 2001 From: mistangl Date: Tue, 9 Jan 2024 10:22:18 +0100 Subject: [PATCH] small fix Doppelhochkomma innerhalb des Format Strings --- lib/compare_lists.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/compare_lists.py b/lib/compare_lists.py index 93a70f1..dad866d 100644 --- a/lib/compare_lists.py +++ b/lib/compare_lists.py @@ -337,7 +337,7 @@ class Treeview: """Prints root number (number for which the user wants to see the tree) to the console""" background_color = self._set_text_background_color(self.main_partnumber) - print(f"{background_color}{self.main_partnumber}{Treeview.console_colors["RESET"]}") + print(f"{background_color}{self.main_partnumber}{Treeview.console_colors['RESET']}") def _tree_body(self, parent_id=None, prefix=""): @@ -395,7 +395,7 @@ class Treeview: + len(Treeview.console_colors["RESET"]) \ + len(Treeview.console_colors["RED"]) # other color codes (ansi escape sequences) could have been used instead since they all have the same length - text_before_description = f"{prefix}{connector}{color}{child_id}{Treeview.console_colors["RESET"]}".ljust(longest_entry) + text_before_description = f"{prefix}{connector}{color}{child_id}{Treeview.console_colors['RESET']}".ljust(longest_entry) description = self._descriptions[child_id] print(f"{text_before_description} {description}") @@ -452,4 +452,4 @@ if __name__ == '__main__': treeview_comparison = Treeview(num, environment.data_dir, environment.data_dir, environment.ruledesigner_csv_filename) treeview_comparison.generate_tree() else: - parser.print_help() \ No newline at end of file + parser.print_help()