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:
@ -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()
|
||||
|
Reference in New Issue
Block a user