diff --git a/django_mailgun/__init__.py b/django_mailgun/__init__.py index 9e271ad..33ad09e 100644 --- a/django_mailgun/__init__.py +++ b/django_mailgun/__init__.py @@ -4,12 +4,12 @@ from django.core.mail.message import sanitize_address try: - from cStringIO import StringIO + from io import StringIO except ImportError: try: - from StringIO import StringIO + from cStringIO import StringIO except ImportError: - from io import StringIO + from StringIO import StringIO class MailgunAPIError(Exception): pass