Skip to content

Commit

Permalink
remove legacy (python2) StringIO import (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
arenevier authored Jul 10, 2024
1 parent ebcfbb1 commit e2c2b67
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
from blockdiag.builder import ScreenNodeBuilder
from blockdiag.parser import parse_file

try:
# sys.stderr in py2.x allows mixture of str and unicode
from cStringIO import StringIO
except ImportError:
# sys.stderr in py3.x allows only str objects (disallow bytes objs)
from io import StringIO
from io import StringIO


def supported_pil():
Expand Down

0 comments on commit e2c2b67

Please sign in to comment.