Skip to content

Conversation

@PeterSurda
Copy link
Member

A couple of code quality fixes.

@PeterSurda PeterSurda added the developers The issue is relevant mainly for developers rather than users label Jun 2, 2021
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super(UDPSocket, self).__init__(sock=sock)

?

return True

# override the protocol do ignore the following commands on UDP
# we do this mainly for security reasons
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of inheritance flow. Maybe UDPSocket should inherit from some more basic class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps.


def __init__(self, host=None, sock=None, announcing=False):
# pylint: disable=bad-super-call
# pylint: disable=bad-super-call, access-member-before-definition
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug: pylint-dev/pylint#2315

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked bug has been fixed. The ignore shouldn't be needed anymore.

@PeterSurda PeterSurda force-pushed the cq101 branch 2 times, most recently from fde350b to e8732f4 Compare August 19, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developers The issue is relevant mainly for developers rather than users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants