From 7d945a5c68b5175a342e5a0c1e72bbfbd8374819 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Mon, 6 Sep 2021 21:21:28 +0530 Subject: [PATCH] Fixed PEP8 warnings --- src/singleinstance.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/singleinstance.py b/src/singleinstance.py index c1e20c4b..19ffc7cc 100644 --- a/src/singleinstance.py +++ b/src/singleinstance.py @@ -55,7 +55,9 @@ class singleinstance(object): ) except OSError as e: if e.errno == 13: - sys.exit('Another instance of this application is already running') + sys.exit( + 'Another instance of this application is' + ' already running') raise else: pidLine = "%i\n" % self.lockPid @@ -70,7 +72,9 @@ class singleinstance(object): fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB) self.lockPid = os.getpid() except IOError: - sys.exit('Another instance of this application is already running') + sys.exit( + 'Another instance of this application is' + ' already running') else: pidLine = "%i\n" % self.lockPid self.fp.truncate(0)