From 98271fdc0ca865f26f71ea0408492f07a193c9c6 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 28 Jul 2015 17:17:28 +0000 Subject: Print warning messages nicely They were all run onto the same line before with no linebreaks. Change-Id: Ibdff91a23221034a3d345542f1268f8863cf4515 --- morphlib/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib') 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 -- cgit v1.2.1