mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-25 11:54:06 +00:00
library: remove unused argument @mainloop_iterate from list functions
If the caller wants to iterate the mainloop, he shall just do it.
This commit is contained in:
parent
e1c5ba55bb
commit
366aeff44d
1 changed files with 2 additions and 6 deletions
|
|
@ -1209,9 +1209,7 @@ class NMUtil:
|
|||
return True
|
||||
return False
|
||||
|
||||
def active_connection_list(self, connections = None, black_list = None, mainloop_iterate = True):
|
||||
if mainloop_iterate:
|
||||
Util.GMainLoop_iterate_all()
|
||||
def active_connection_list(self, connections = None, black_list = None):
|
||||
active_cons = self.nmclient.get_active_connections()
|
||||
if connections:
|
||||
connections = set(connections)
|
||||
|
|
@ -1221,9 +1219,7 @@ class NMUtil:
|
|||
active_cons = list(active_cons)
|
||||
return active_cons;
|
||||
|
||||
def connection_list(self, name = None, uuid = None, black_list = None, black_list_names = None, black_list_uuids = None, mainloop_iterate = True):
|
||||
if mainloop_iterate:
|
||||
Util.GMainLoop_iterate_all()
|
||||
def connection_list(self, name = None, uuid = None, black_list = None, black_list_names = None, black_list_uuids = None):
|
||||
cons = self.nmclient.get_connections()
|
||||
if name is not None:
|
||||
cons = [c for c in cons if c.get_id() == name]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue