davemds pushed a commit to branch master. http://git.enlightenment.org/apps/espionage.git/commit/?id=9f37c34dc4932871d8f44d85a9bbd6382a433769
commit 9f37c34dc4932871d8f44d85a9bbd6382a433769 Author: Dave Andreoli <d...@gurumeditation.it> Date: Mon Apr 26 11:40:53 2021 +0200 Removed an unneeded param bus is already a global variable, no need to pass them around --- espionage/espionage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/espionage/espionage.py b/espionage/espionage.py index 776d513..a3a0476 100644 --- a/espionage/espionage.py +++ b/espionage/espionage.py @@ -246,7 +246,7 @@ class DBusSignal(DBusNode): return 'signal.png' -def recursive_introspect(bus, named_service, object_path, ret_data=None): +def recursive_introspect(named_service, object_path, ret_data=None): """ Introspect a named service and return a list of DBusObjects """ # first recursion, create an empty list if ret_data is None: @@ -307,7 +307,7 @@ def recursive_introspect(bus, named_service, object_path, ret_data=None): if object_path == '/': object_path = '' new_path = '/'.join((object_path, xml_node.attrib['name'])) - recursive_introspect(bus, named_service, new_path, ret_data) + recursive_introspect(named_service, new_path, ret_data) return ret_data @@ -518,7 +518,7 @@ class DetailList(Genlist): self.clear() # objects - for obj in recursive_introspect(bus, name, '/'): + for obj in recursive_introspect(name, '/'): obj_item = self.item_append(self.itc_g, obj, flags=ELM_GENLIST_ITEM_GROUP) obj_item.select_mode_set(ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) --