Skip to content

Commit

Permalink
Make Python 2 compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymoch committed Mar 4, 2016
1 parent 1cfb696 commit e2f641f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_dump_as_json.py
Expand Up @@ -3,7 +3,13 @@
"""

import json
from io import StringIO

# For Python 2 compatibility.
try:
from StringIO import StringIO
except ImportError:
from io import StringIO

from nose.tools import eq_
from nose.tools import raises

Expand Down

0 comments on commit e2f641f

Please sign in to comment.