From e8a7fbee3bb652159b81771ec16eab938ff84793 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Mon, 5 Oct 2015 21:41:58 +0300 Subject: giscanner.message: Don't print node as the default context Node is always present in the output of .log_node(), so printing it another time as context just adds noise. https://bugzilla.gnome.org/show_bug.cgi?id=756088 --- giscanner/message.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/giscanner/message.py b/giscanner/message.py index e79a8131..02377896 100644 --- a/giscanner/message.py +++ b/giscanner/message.py @@ -192,9 +192,7 @@ class MessageLogger(object): elif context and context.file_positions: positions = context.file_positions else: - positions = [] - if not context: - text = "context=%r %s" % (node, text) + positions = set() if context: text = "%s: %s" % (getattr(context, 'symbol', context.name), text) -- cgit v1.2.1