codegen: direction defaults to "in"

This commit is contained in:
Jasper St. Pierre 2013-12-31 15:13:06 -05:00
parent e9c19583de
commit 0c87f71521

View 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':