mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
pep8 <3
This commit is contained in:
parent
869a4e2f14
commit
d28990350c
1 changed files with 1 additions and 2 deletions
|
@ -496,7 +496,6 @@ class MoulinetteLock(object):
|
||||||
|
|
||||||
return lock_pid
|
return lock_pid
|
||||||
|
|
||||||
|
|
||||||
def _is_son_of_locked(self):
|
def _is_son_of_locked(self):
|
||||||
|
|
||||||
lock_pid = self._lock_PID()
|
lock_pid = self._lock_PID()
|
||||||
|
@ -506,7 +505,7 @@ class MoulinetteLock(object):
|
||||||
|
|
||||||
parent = psutil.Process()
|
parent = psutil.Process()
|
||||||
# While this is not the very first process
|
# While this is not the very first process
|
||||||
while parent.parent() != None:
|
while parent.parent() is not None:
|
||||||
# If parent PID is the lock, the yes! we are a son of the process
|
# If parent PID is the lock, the yes! we are a son of the process
|
||||||
# with the lock...
|
# with the lock...
|
||||||
if parent.ppid() == int(lock_pid):
|
if parent.ppid() == int(lock_pid):
|
||||||
|
|
Loading…
Reference in a new issue