diff --git a/spyderlib/utils/external/lockfile.py b/spyderlib/utils/external/lockfile.py index 20775e4abed..f05d2c49327 100644 --- a/spyderlib/utils/external/lockfile.py +++ b/spyderlib/utils/external/lockfile.py @@ -16,7 +16,7 @@ from time import time as _uniquefloat -from spyderlib.py3compat import PY2, to_binary_string, to_text_string +from spyderlib.py3compat import PY2, to_binary_string def unique(): if PY2: @@ -63,7 +63,7 @@ def _is_pid_running(pid): # that the process is still running. return is_running or exit_code.value == STILL_ACTIVE - def kill(pid, signal): + def kill(pid, signal): # analysis:ignore if not _is_pid_running(pid): raise OSError(errno.ESRCH, None) else: @@ -130,7 +130,6 @@ class FilesystemLock: def __init__(self, name): self.name = name - def lock(self): """ Acquire this lock. @@ -194,7 +193,6 @@ def lock(self): self.clean = clean return True - def unlock(self): """ Release this lock.