Code quality #1773
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-04#1773
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "PeterSurda/cq101"
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?
A couple of code quality fixes.
@ -24,3 +24,3 @@
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
self.verackReceived = True
?
@ -104,3 +107,4 @@
# pylint: disable=no-self-use
return True
def bm_command_pong(self):
This is more of inheritance flow. Maybe
UDPSocket
should inherit from some more basic class?@ -23,3 +23,3 @@
def __init__(self, host=None, sock=None, announcing=False):
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
This is a bug: https://github.com/PyCQA/pylint/issues/2315
@ -104,3 +107,4 @@
# pylint: disable=no-self-use
return True
def bm_command_pong(self):
Perhaps.
@ -23,3 +23,3 @@
def __init__(self, host=None, sock=None, announcing=False):
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
super(BMProto, self).__init__(sock=sock)
The linked bug has been fixed. The ignore shouldn't be needed anymore.