Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TXT record packing support. #6

Closed
wants to merge 1 commit into from

Conversation

maikelwever
Copy link

Very basic support for sending out TXT records. TXT record parsing not implemented.

def __init__(self, data):
self.data = data
if isinstance(self.data, str):
self.data = self.data.encode('utf')
Copy link
Owner

Choose a reason for hiding this comment

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

How about using default encoding?

if isinstance(data, str):
    data = data.encode()
self.data = data


@classmethod
def load(cls, data, l):
raise NotImplementedError
Copy link
Owner

Choose a reason for hiding this comment

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

Shall we implement this in a simple way?

@gera2ld
Copy link
Owner

gera2ld commented Apr 30, 2019

Implemented in 8851358

@gera2ld gera2ld closed this Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants