Updated code quality removed print statement spaces in singleinstance.py #1833

Merged
kdcis merged 4 commits from v0.6-codequality-singleinstance into v0.6 2021-10-01 14:03:06 +02:00
Showing only changes of commit 3534729421 - Show all commits

View File

@ -75,7 +75,7 @@ class singleinstance(object):
fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
self.lockPid = os.getpid()
except IOError:
print ('Another instance of this application is already running')
print('Another instance of this application is already running')
sys.exit(-1)
else:
pidLine = "%i\n" % self.lockPid
@ -99,7 +99,7 @@ class singleinstance(object):
pass
return
print ("Cleaning up lockfile")
print("Cleaning up lockfile")
try:
if sys.platform == 'win32':
if hasattr(self, 'fd'):