Remove deprecated calls to apply()

apply() has been deprecated since Python 2.3, and won't be working in
python 3 anymore. Use the functional equivalent throughout.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2011-09-27 12:58:23 +02:00
parent e145beb394
commit ae8a1cb79f
3 changed files with 8 additions and 10 deletions

View File

@ -214,8 +214,7 @@ def initInstanceLimit(instancename, instancemax):
class InstanceLimitedThread(ExitNotifyThread):
def __init__(self, instancename, *args, **kwargs):
self.instancename = instancename
apply(ExitNotifyThread.__init__, (self,) + args, kwargs)
super(InstanceLimitedThread, self).__init__(*args, **kwargs)
def start(self):
instancelimitedsems[self.instancename].acquire()