git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for 16:10 display aspect ratio
[enigma2.git]
/
lib
/
python
/
Tools
/
BoundFunction.py
diff --git
a/lib/python/Tools/BoundFunction.py
b/lib/python/Tools/BoundFunction.py
index 5447451dd2d733324235b3ee291b45276473225a..f28a50c81950c0ee2f03055a7ab9eb975c41bedd 100644
(file)
--- a/
lib/python/Tools/BoundFunction.py
+++ b/
lib/python/Tools/BoundFunction.py
@@
-1,6
+1,9
@@
class boundFunction:
class boundFunction:
- def __init__(self, fnc, *args):
+ def __init__(self, fnc, *args
, **kwargs
):
self.fnc = fnc
self.args = args
self.fnc = fnc
self.args = args
- def __call__(self, *args):
- self.fnc(*self.args + args)
+ self.kwargs = kwargs
+ def __call__(self, *args, **kwargs):
+ newkwargs = self.kwargs
+ newkwargs.update(kwargs)
+ self.fnc(*self.args + args, **newkwargs)