Updated code quality removed print statement spaces in singleinstance.py
This commit is contained in:
parent
72bcbdf4c9
commit
3534729421
|
@ -75,7 +75,7 @@ class singleinstance(object):
|
||||||
fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||||
self.lockPid = os.getpid()
|
self.lockPid = os.getpid()
|
||||||
except IOError:
|
except IOError:
|
||||||
print ('Another instance of this application is already running')
|
print('Another instance of this application is already running')
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
else:
|
else:
|
||||||
pidLine = "%i\n" % self.lockPid
|
pidLine = "%i\n" % self.lockPid
|
||||||
|
@ -99,7 +99,7 @@ class singleinstance(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return
|
return
|
||||||
print ("Cleaning up lockfile")
|
print("Cleaning up lockfile")
|
||||||
try:
|
try:
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
if hasattr(self, 'fd'):
|
if hasattr(self, 'fd'):
|
||||||
|
|
Reference in New Issue
Block a user