| @@ -40,7 +40,7 @@ def parsexml(astr):
# Throw XML parsing errors so we can blame the feed authors.
return xml
-def parsejson(astr):
+def parsejsonfeed(astr):
js = json.loads(astr)
feed = {}
@@ -119,7 +119,7 @@ def parsejson(astr):
return feed
-def parseatom(astr):
+def parseatomfeed(astr):
xml = parsexml(astr)
if xml == None:
return None
@@ -372,7 +372,7 @@ def fetch(uri):
ftype = "json"
if ftype == "xml":
- return (rcode, parsexml(fval))
+ return (rcode, parseatomfeed(fval))
else:
- return (rcode, parsejson(fval.decode("utf-8")))
+ return (rcode, parsejsonfeed(fval.decode("utf-8")))
|