Remove unnecessary variable
Change-Id: I64847ffa6a0078ce66c3117a51df0fd6188a0f8c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/obmc/dbuslib/introspection.py b/obmc/dbuslib/introspection.py
index ec252c6..9444d13 100644
--- a/obmc/dbuslib/introspection.py
+++ b/obmc/dbuslib/introspection.py
@@ -142,13 +142,13 @@
self.results = {}
@staticmethod
- def _introspect(service, path):
+ def _introspect(path):
obj = conn.get_object(service, path, introspect=False)
iface = dbus.Interface(obj, dbus.INTROSPECTABLE_IFACE)
return iface.Introspect()
@staticmethod
- def _get_managed_objects(service, om):
+ def _get_managed_objects(om):
obj = conn.get_object(service, om, introspect=False)
iface = dbus.Interface(
obj, dbus.BUS_DAEMON_IFACE + '.ObjectManager')
@@ -162,9 +162,9 @@
def _to_path_elements(path):
return filter(bool, path.split('/'))
- def __call__(self, service, path):
+ def __call__(self, path):
self.results = {}
- self._find_interfaces(service, path)
+ self._find_interfaces(path)
return self.results
@staticmethod
@@ -172,10 +172,10 @@
return iface == dbus.BUS_DAEMON_IFACE + '.ObjectManager' \
or match(iface)
- def _find_interfaces(self, service, path):
+ def _find_interfaces(self, path):
path_elements = self._to_path_elements(path)
path = self._to_path(path_elements)
- root = ET.fromstring(self._introspect(service, path))
+ root = ET.fromstring(self._introspect(path))
ifaces = filter(
self._match,
@@ -183,7 +183,7 @@
self.results[path] = ifaces
if dbus.BUS_DAEMON_IFACE + '.ObjectManager' in ifaces:
- objs = self._get_managed_objects(service, path)
+ objs = self._get_managed_objects(path)
for k, v in objs.iteritems():
self.results[k] = v
else:
@@ -196,6 +196,6 @@
for x in sorted(children)]
for child in children:
if child not in self.results:
- self._find_interfaces(service, child)
+ self._find_interfaces(child)
- return _FindInterfaces()(service, path)
+ return _FindInterfaces()(path)