From f43c8482a309aad87ba7242d83e15f346884cb09 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Wed, 15 Jun 2022 18:14:48 +0200 Subject: [PATCH] Fixed awful print leftover --- src/bootstraparse/modules/context_mngr.py | 2 -- src/bootstraparse/modules/export.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bootstraparse/modules/context_mngr.py b/src/bootstraparse/modules/context_mngr.py index e5960cd..4a0e29b 100644 --- a/src/bootstraparse/modules/context_mngr.py +++ b/src/bootstraparse/modules/context_mngr.py @@ -63,8 +63,6 @@ class BaseContainer: :rtype : (syntax.SemanticType | BaseContainer) :return: The optionals of the container """ - print(f"{self.content}") - print(f'Getting optionals for {self.class_name()} <{id(self)}>{self.optionals}') return self.optionals def get_others(self): diff --git a/src/bootstraparse/modules/export.py b/src/bootstraparse/modules/export.py index 4990ee5..c0854a4 100644 --- a/src/bootstraparse/modules/export.py +++ b/src/bootstraparse/modules/export.py @@ -5,7 +5,6 @@ # rsp = ExportResponse("start_string", "end_string") # em = ExportManager(config_file, template_file) # em(ExportRequest()) -> ExportResponse() -import rich from io import StringIO from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr @@ -115,7 +114,6 @@ class ExportManager: except KeyError: log_entries = ["bootstrap", export_request.type, export_request.subtype] log_ = tools.dict_check(self.templates, *log_entries) - print() error_mngr.log_exception( KeyError( f'Template "bootstrap"/{export_request.type}/{export_request.subtype} could not be found.\n' + @@ -263,6 +261,7 @@ class ContextConverter: if __name__ == '__main__': # pragma: no cover + import rich from bootstraparse.modules import parser io_string = StringIO(