Skip to content

Commit e2c2b67

Browse files
authored
remove legacy (python2) StringIO import (#19)
1 parent ebcfbb1 commit e2c2b67

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/utils.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
from blockdiag.builder import ScreenNodeBuilder
2626
from blockdiag.parser import parse_file
2727

28-
try:
29-
# sys.stderr in py2.x allows mixture of str and unicode
30-
from cStringIO import StringIO
31-
except ImportError:
32-
# sys.stderr in py3.x allows only str objects (disallow bytes objs)
33-
from io import StringIO
28+
from io import StringIO
3429

3530

3631
def supported_pil():

0 commit comments

Comments
 (0)