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

Python 3 #10

Open
ransalmo opened this issue Jul 11, 2019 · 2 comments
Open

Python 3 #10

ransalmo opened this issue Jul 11, 2019 · 2 comments

Comments

@ransalmo
Copy link

Exist any plan to migrate the code to Python 3.X?

@theintencity
Copy link
Owner

theintencity commented Jul 15, 2019 via email

@kthorngren
Copy link

kthorngren commented Nov 25, 2020

I didn't get far with the Python 3 branch. I tried with 3.6.5 and it fails right away with the inbound invite message. The Message class fails to parse the inbound INVITE headers:

    def __iter__(self):
        '''Return iterator to iterate over all Header objects.'''
        h = list()
        for n in [x for x in self.__dict__ if not x.startswith('_') and x not in Message._keywords]:
            if isinstance(x, Header):
                arr = [self[n]]
            elif isinstance(self[n],list):
                arr = self[n]
            h += [x for x in arr]
        return iter(h)

There are multiple errors in this method so I stopped here. Will try out the master branch with 2.7.

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

No branches or pull requests

3 participants