Merge pull request #120 from appropriatetech/master
Python3 compatibility
This commit is contained in:
commit
3b635d9cb7
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from cStringIO import StringIO
|
try:
|
||||||
|
from io import StringIO
|
||||||
|
except:
|
||||||
|
# Python 2
|
||||||
|
from cStringIO import StringIO
|
||||||
import itertools
|
import itertools
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in a new issue