Blame SOURCES/0001-make-direction-attribute-conforming-to-introspect.dt.patch

a2f718
From 5fe65a35e0e7106347639f0258206fadb451c439 Mon Sep 17 00:00:00 2001
a2f718
From: Hiroaki KAWAI <hiroaki.kawai@gmail.com>
a2f718
Date: Wed, 1 Feb 2017 18:00:33 +0900
a2f718
Subject: [PATCH 1/3] make direction attribute conforming to introspect.dtd
a2f718
a2f718
direction attribute defaults to "in" as
a2f718
in the DTD(*1), direction attribute is defined as following:
a2f718
a2f718
```
a2f718
a2f718
```
a2f718
a2f718
*1) http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd
a2f718
---
a2f718
 pydbus/proxy_method.py | 4 ++--
a2f718
 1 file changed, 2 insertions(+), 2 deletions(-)
a2f718
a2f718
diff --git a/pydbus/proxy_method.py b/pydbus/proxy_method.py
a2f718
index 8798edd..3e6e6ee 100644
a2f718
--- a/pydbus/proxy_method.py
a2f718
+++ b/pydbus/proxy_method.py
a2f718
@@ -33,8 +33,8 @@ class ProxyMethod(object):
a2f718
 		self.__name__ = method.attrib["name"]
a2f718
 		self.__qualname__ = self._iface_name + "." + self.__name__
a2f718
 
a2f718
-		self._inargs  = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "in"]
a2f718
-		self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "out"]
a2f718
+		self._inargs  = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "in"]
a2f718
+		self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "out"]
a2f718
 		self._sinargs  = "(" + "".join(x[1] for x in self._inargs) + ")"
a2f718
 		self._soutargs = "(" + "".join(self._outargs) + ")"
a2f718
 
a2f718
-- 
a2f718
2.13.5
a2f718