diff --git a/tools/web.py b/tools/web.py index 7678a7d..a67091c 100644 --- a/tools/web.py +++ b/tools/web.py @@ -125,7 +125,7 @@ def getXML(url, timeout=15): if cnt is None: return None else: - return xmlparser.parse_string(cnt) + return xmlparser.parse_string(cnt.encode()) def getJSON(url, timeout=15): """Get content page and return JSON content"""