Skip to content

str(User) infinite recursion on Python 3 #199

Open
@louisabraham

Description

The problem is there: https://github.com/charliewolf/pynder/blob/master/pynder/models/user.py#L95

    def __str__(self):
        return six.text_type(self).encode('utf-8')

six.text_type is str in Python 3 hence an infinite loop.
The best would be to use future.utils.python_2_unicode_compatible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions