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

str(User) infinite recursion on Python 3 #199

Open
louisabraham opened this issue Jul 1, 2018 · 0 comments
Open

str(User) infinite recursion on Python 3 #199

louisabraham opened this issue Jul 1, 2018 · 0 comments

Comments

@louisabraham
Copy link

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.

louisabraham added a commit to louisabraham/pynder that referenced this issue Jul 1, 2018
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

1 participant