Skip to content

Commit aea55e8

Browse files
committed
Turn args into a list so we can concatenate it with another list later.
This is NM < 1.0 compatibility
1 parent 3c061a1 commit aea55e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetworkManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def make_signal(klass, interface, attrib):
206206
name = attrib['name']
207207
ret = {}
208208
code = "def On%s(self, func, *args, **kwargs):" % name
209-
code += " SignalDispatcher.add_signal_receiver('%s', '%s', self, func, args, kwargs)" % (interface, name)
209+
code += " SignalDispatcher.add_signal_receiver('%s', '%s', self, func, list(args), kwargs)" % (interface, name)
210210
exec(code, globals(), ret)
211211
return ret['On' + name]
212212

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy