Gio.DBusNodeInfo.generate_xml recently requires a GLib.String as argument (returns None)
This is very likely due to glib@085b3470
Before I could do
nodeinfo = Gio.DBusNodeInfo.new_from_xml(xml) logging.debug(node_info.generate_xml(0).str)
But now it wants the GLib.String as argument and instead returns None.
logstr = GLib.String() nodeinfo = Gio.DBusNodeInfo.new_for_xml(xml) node_info.generate_xml(0, logstr) logging.debug(logstr.str)
I think the annotation change is right as the function indeed appends, however.. In python strings are immutable so there is no way the function could use them directly and people are forced to use a GLib.String. I am not sure how many people relied on the old behaviour and is easily fixed but should there be an override that handles the GLib.String appending and return a proper python string?