[glib] codegen: direction defaults to "in"



commit 0c87f71521802a323e1fd2136788ad8942ea85eb
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Dec 31 15:13:06 2013 -0500

    codegen: direction defaults to "in"

 gio/gdbus-2.0/codegen/parser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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':


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]