summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-28 17:17:28 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-30 15:45:03 +0000
commit98271fdc0ca865f26f71ea0408492f07a193c9c6 (patch)
treeca4f6bf79d75cae17bd9fbb1921e8150a3eb506e
parent60c378c55d5d0ef89184b49ae95e445f8de422e3 (diff)
downloadmorph-98271fdc0ca865f26f71ea0408492f07a193c9c6.tar.gz
Print warning messages nicely
They were all run onto the same line before with no linebreaks. Change-Id: Ibdff91a23221034a3d345542f1268f8863cf4515
-rw-r--r--morphlib/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index dd524dbe..9f9ab01a 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -229,7 +229,7 @@ class Morph(cliapp.Application):
def pretty_warnings(message, category, filename, lineno,
file=None, line=None):
- return 'WARNING: %s' % (message)
+ return 'WARNING: %s\n' % (message)
warnings.formatwarning = pretty_warnings