codegen: direction defaults to "in"
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 31 Dec 2013 20:13:06 +0000 (15:13 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 31 Dec 2013 20:39:02 +0000 (15:39 -0500)
gio/gdbus-2.0/codegen/parser.py

index 7b9d216beb71cbdaa5e70aadc336fdaf090904ad..f8f022aa894fc75e213e02093b167cebb1fd5b4a 100644 (file)
@@ -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':