diff options
author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-10-05 21:41:58 +0300 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-10-05 16:45:13 -0400 |
commit | e8a7fbee3bb652159b81771ec16eab938ff84793 (patch) | |
tree | 10c4b704d042ce72fda963955d25f487621a9d8b /giscanner | |
parent | 934ce4d1f44cc0f2eea81fe3bbc09037130d8fad (diff) | |
download | gobject-introspection-e8a7fbee3bb652159b81771ec16eab938ff84793.tar.gz |
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
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/message.py | 4 |
1 files changed, 1 insertions, 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) |