changeset 10618 | 3274a1648c7e |
parent 10588 | fdaa0e4b7eaf |
child 10662 | 10942ed172de |
--- a/devtools/htmlparser.py Fri Sep 11 17:40:23 2015 +0200 +++ b/devtools/htmlparser.py Mon Sep 14 18:56:29 2015 +0200 @@ -20,7 +20,7 @@ import re import sys from xml import sax -from cStringIO import StringIO +from io import BytesIO from lxml import etree @@ -164,7 +164,7 @@ def _parse(self, data): inpsrc = sax.InputSource() - inpsrc.setByteStream(StringIO(data)) + inpsrc.setByteStream(BytesIO(data)) try: self._parser.parse(inpsrc) except sax.SAXParseException as exc: