Skip to content

Commit

Permalink
Merge pull request BradWhittington#10 from vstoykov/patch-1
Browse files Browse the repository at this point in the history
`io` module is present in Python 2.6
  • Loading branch information
BradWhittington committed Jun 1, 2014
2 parents 9c4b03c + 562f346 commit d41be95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_mailgun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d41be95

Please sign in to comment.