Fixed awful print leftover

This commit is contained in:
Maximilien Rigaut 2022-06-15 18:14:48 +02:00
parent 30e0486b7c
commit 2f4d4ab973
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
2 changed files with 1 additions and 4 deletions

View File

@ -63,8 +63,6 @@ class BaseContainer:
:rtype : (syntax.SemanticType | BaseContainer) :rtype : (syntax.SemanticType | BaseContainer)
:return: The optionals of the container :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 return self.optionals
def get_others(self): def get_others(self):

View File

@ -5,7 +5,6 @@
# rsp = ExportResponse("start_string", "end_string") # rsp = ExportResponse("start_string", "end_string")
# em = ExportManager(config_file, template_file) # em = ExportManager(config_file, template_file)
# em(ExportRequest()) -> ExportResponse() # em(ExportRequest()) -> ExportResponse()
import rich
from io import StringIO from io import StringIO
from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr from bootstraparse.modules import config, pathresolver, error_mngr, context_mngr
@ -115,7 +114,6 @@ class ExportManager:
except KeyError: except KeyError:
log_entries = ["bootstrap", export_request.type, export_request.subtype] log_entries = ["bootstrap", export_request.type, export_request.subtype]
log_ = tools.dict_check(self.templates, *log_entries) log_ = tools.dict_check(self.templates, *log_entries)
print()
error_mngr.log_exception( error_mngr.log_exception(
KeyError( KeyError(
f'Template "bootstrap"/{export_request.type}/{export_request.subtype} could not be found.\n' + 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 if __name__ == '__main__': # pragma: no cover
import rich
from bootstraparse.modules import parser from bootstraparse.modules import parser
io_string = StringIO( io_string = StringIO(