From 0c87f71521802a323e1fd2136788ad8942ea85eb Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 31 Dec 2013 15:13:06 -0500 Subject: [PATCH] codegen: direction defaults to "in" --- gio/gdbus-2.0/codegen/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbus-2.0/codegen/parser.py b/gio/gdbus-2.0/codegen/parser.py index 7b9d216..f8f022a 100644 --- a/gio/gdbus-2.0/codegen/parser.py +++ b/gio/gdbus-2.0/codegen/parser.py @@ -197,7 +197,7 @@ class DBusXMLParser: if 'name' in attrs: arg_name = attrs['name'] arg = dbustypes.Arg(arg_name, attrs['type']) - direction = attrs['direction'] + direction = attrs.get('direction', 'in') if direction == 'in': self._cur_object.in_args.append(arg) elif direction == 'out': -- 2.7.4