Updated code quality removed print statement spaces in singleinstance.py #1833
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-13#1833
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "v0.6-codequality-singleinstance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removed print statement spaces
@ -75,8 +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')
What about #1373?
@ -75,8 +72,9 @@ class singleinstance(object):
fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
self.lockPid = os.getpid()
except IOError:
And the same above.
print(e.errno)
is also redundant as for me.@ -75,8 +72,9 @@ class singleinstance(object):
fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
self.lockPid = os.getpid()
except IOError:
Updated
PEP8 violation here: line too long
line too long
Updated
Updated
just remove
updated