Skip to content

Commit

Permalink
In Python 3 import StringIO from io (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Oct 8, 2024
1 parent 54998ee commit f2f488e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions xmltodict.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
from xml.parsers import expat
from xml.sax.saxutils import XMLGenerator
from xml.sax.xmlreader import AttributesImpl
try: # pragma no cover
from cStringIO import StringIO
except ImportError: # pragma no cover
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from io import StringIO


_dict = dict
import platform
Expand Down

0 comments on commit f2f488e

Please sign in to comment.