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:
@ -66,7 +66,7 @@ class CursesUtil:
|
||||
"""Perform an operation with full locking."""
|
||||
self.lock()
|
||||
try:
|
||||
apply(target, args, kwargs)
|
||||
target(*args, **kwargs)
|
||||
finally:
|
||||
self.unlock()
|
||||
|
||||
|
Reference in New Issue
Block a user