small down the footprint

This commit is contained in:
Pascal Vizeli 2018-04-22 09:35:36 +02:00
parent 69142b6fb0
commit f1237f124f

View File

@ -74,9 +74,9 @@ class DBus(object):
# Read available methods
for interface in xml.findall("/node/interface"):
methods = []
methods = set()
for method in interface.findall("/method"):
methods.append(method.get('name'))
methods.add(method.get('name'))
self.data[interface.get('name')] = methods
@staticmethod