--- a/src/eric7/EricUtilities/EricMutexLocker.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/EricUtilities/EricMutexLocker.py Wed Jul 13 14:55:47 2022 +0200 @@ -14,30 +14,31 @@ """ Class implementing a context manager locking and unlocking a mutex. """ + def __init__(self, mutex): """ Constructor - + @param mutex reference to the mutex to be locked @type QMutex or QRecursiveMutex """ self.__mutex = mutex - + def __enter__(self): """ Special method called when entering the runtime ccontext. - + @return reference to the context manager object @rtype EricOverrideCursor """ self.__mutex.lock() - + return self - + def __exit__(self, exc_type, exc_value, traceback): """ Special method called when exiting the runtime ccontext. - + @param exc_type type of an exception raised in the runtime context @param exc_value value of an exception raised in the runtime context @param traceback traceback of an exception raised in the runtime @@ -46,5 +47,5 @@ @rtype None """ self.__mutex.unlock() - - return None # __IGNORE_WARNING_M831__ + + return None # __IGNORE_WARNING_M831__