diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:35:40 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:35:40 +0000 |
| commit | f3b1a20b183c612caf5122ebc4540a8fe4fff486 (patch) | |
| tree | 764d107624c204406fdc0bbf0a2948669890109d /lib/python/Components/NimManager.py | |
| parent | 0a925ced9209f41b9f15009185c2722200bdc09d (diff) | |
| download | enigma2-f3b1a20b183c612caf5122ebc4540a8fe4fff486.tar.gz enigma2-f3b1a20b183c612caf5122ebc4540a8fe4fff486.zip | |
use boundFunction from tools
Diffstat (limited to 'lib/python/Components/NimManager.py')
| -rw-r--r-- | lib/python/Components/NimManager.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index e7593200..14517d75 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -18,6 +18,8 @@ from Tools import XMLTools from xml.sax import make_parser from xml.sax.handler import ContentHandler +from Tools.BoundFunction import boundFunction + def tryOpen(filename): try: procFile = open(filename) @@ -84,13 +86,6 @@ class SecConfigure: self.NimManager = nimmgr self.update() -class boundFunction: - def __init__(self, fnc, *args): - self.fnc = fnc - self.args = args - def __call__(self, *args): - self.fnc(*self.args + args) - class nimSlot: def __init__(self, slotid, nimtype, name): self.slotid = slotid |
