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

Added compatibility for StringIO when Python 3.x is being used #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

devrique
Copy link

@devrique devrique commented May 3, 2017

I was having problems using Python 3.5.3 with Django 1.11, so I checked the error and it was a subtile incompatibility with Python 3.x. Now it can use the classes it was trying to import, and if it returns an error, it can try to import the Python 3.x class.

@mohammed-Emad
Copy link

HI!
Thank you all for the great effort
I think that the amendment must be made, as the owner of the problem said. I do not think that there is a big change in that, or that it conflicts with something existing.
Good luck🙂

in

try:
    from cStringIO import StringIO
except ImportError:
    try:
        from StringIO import StringIO
    except ImportError:
        from io import StringIO

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.

4 participants