From 1dd0fcec1d80aa1c586044065ec320f82d542de2 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 2 Sep 2010 11:44:27 -0300 Subject: [scanner] Move over remaining callsites to message Move the remaining callsites over to the new message module --- giscanner/gdumpparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'giscanner/gdumpparser.py') diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py index d93a4645..d88f2e33 100644 --- a/giscanner/gdumpparser.py +++ b/giscanner/gdumpparser.py @@ -209,8 +209,8 @@ blob containing data gleaned from GObject's primitive introspection.""" rettype = func.retval.type if not (rettype.is_equiv(ast.TYPE_GTYPE) or rettype.target_giname == 'Gtk.Type'): - self._transformer.log_warning("function returns '%r', not a GType" - % (func.retval.type, )) + message.warn("function returns '%r', not a GType" % ( + func.retval.type, )) return False self._get_type_functions.append(func.symbol) -- cgit v1.2.1