Skip to content

Commit

Permalink
In Python 3 import StringIO from io
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed May 4, 2024
1 parent 9c3ec3c commit 82fe33e
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 82fe33e

Please sign in to comment.