From 454350283a15c5c7314c9f92e1e1d84868ae133a Mon Sep 17 00:00:00 2001 From: j-bryan Date: Thu, 1 Feb 2024 13:11:49 -0700 Subject: [PATCH] removes writeTo option for message --- ravenframework/MessageHandler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ravenframework/MessageHandler.py b/ravenframework/MessageHandler.py index c5f00a0ec4..01a40d5fc0 100644 --- a/ravenframework/MessageHandler.py +++ b/ravenframework/MessageHandler.py @@ -234,7 +234,7 @@ def error(self, caller, etype, message, tag='ERROR', verbosity='silent', color=N sys.tracebacklimit = 0 raise etype(message) - def message(self, caller, message, tag, verbosity, color=None, writeTo=sys.stdout, forcePrint=False): + def message(self, caller, message, tag, verbosity, color=None, forcePrint=False): """ Print a message @ In, caller, object, the entity desiring to print a message @@ -250,8 +250,7 @@ def message(self, caller, message, tag, verbosity, color=None, writeTo=sys.stdou if tag.lower().strip() == 'warning': self.addWarning(message) if okay: - print(msg, file=writeTo) - sys.stdout.flush() + print(msg, flush=True) def addWarning(self, msg): """