Skip to content
Snippets Groups Projects
Commit c601a8f6 authored by Bienchen's avatar Bienchen
Browse files

Removed new lines from messages

parent 60681801
No related branches found
No related tags found
No related merge requests found
......@@ -100,10 +100,13 @@ class PM3ArgumentParser(argparse.ArgumentParser):
function to bend :mod:`argparse` to use :class:`ost.Logger`.
"""
if message:
no_nl_msg = message
if message[-1] == '\n':
no_nl_msg = message[:-1]
if file is None or file is sys.stderr:
ost.LogError(message)
ost.LogError(no_nl_msg)
else:
ost.LogScript(message)
ost.LogScript(no_nl_msg)
def Parse(self, args=None):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment