Skip to content

Commit

Permalink
Some minor fixes to the external lockfile library
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jun 8, 2015
1 parent 7622e1f commit 80debe4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spyderlib/utils/external/lockfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -130,7 +130,6 @@ class FilesystemLock:
def __init__(self, name):
self.name = name


def lock(self):
"""
Acquire this lock.
Expand Down Expand Up @@ -194,7 +193,6 @@ def lock(self):
self.clean = clean
return True


def unlock(self):
"""
Release this lock.
Expand Down

0 comments on commit 80debe4

Please sign in to comment.