Fix usage of parse_string
This commit is contained in:
parent
b63170244a
commit
8efc92edde
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ def getXML(url, timeout=15):
|
||||||
if cnt is None:
|
if cnt is None:
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
return xmlparser.parse_string(cnt)
|
return xmlparser.parse_string(cnt.encode())
|
||||||
|
|
||||||
def getJSON(url, timeout=15):
|
def getJSON(url, timeout=15):
|
||||||
"""Get content page and return JSON content"""
|
"""Get content page and return JSON content"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue