Code quality #1773
Loading…
x
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.