Remove leading space in warning messages (#62002)

ci_complete
This commit is contained in:
Sam Doran 2019-09-17 11:16:00 -04:00 committed by Matt Martz
parent 32fbde67f7
commit ea6e96985a
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- display - remove leading space when displaying WARNING messages

View file

@ -248,7 +248,7 @@ class Display(with_metaclass(Singleton, object)):
def warning(self, msg, formatted=False):
if not formatted:
new_msg = "\n[WARNING]: %s" % msg
new_msg = "[WARNING]: %s" % msg
wrapped = textwrap.wrap(new_msg, self.columns)
new_msg = "\n".join(wrapped) + "\n"
else: