Skip to content

Commit

Permalink
Merge pull request LEW21#44 from hkwi/dtd
Browse files Browse the repository at this point in the history
make direction attribute conforming to introspect.dtd
  • Loading branch information
LEW21 authored Feb 5, 2017
2 parents 75e01df + ff792fe commit 6be6273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydbus/proxy_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def __init__(self, iface_name, method):
self.__name__ = method.attrib["name"]
self.__qualname__ = self._iface_name + "." + self.__name__

self._inargs = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "in"]
self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib["direction"] == "out"]
self._inargs = [(arg.attrib.get("name", ""), arg.attrib["type"]) for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "in"]
self._outargs = [arg.attrib["type"] for arg in method if arg.tag == "arg" and arg.attrib.get("direction", "in") == "out"]
self._sinargs = "(" + "".join(x[1] for x in self._inargs) + ")"
self._soutargs = "(" + "".join(self._outargs) + ")"

Expand Down

0 comments on commit 6be6273

Please sign in to comment.