Code cleanup

This commit is contained in:
Ruud committed 2014-01-19 19:15:58 +01:00
1 parent 3c03e400f0
commit 799299c7cc
214 files changed
+497 -324

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import xml.etree.ElementTree as XMLTree
log = CPLog(__name__)
class RSS(object):
def getTextElements(self, xml, path):
@@ -46,6 +47,6 @@ class RSS(object):
def getItems(self, data, path = 'channel/item'):
try:
return XMLTree.parse(data).findall(path)
except Exception, e:
except Exception as e:
log.error('Error parsing RSS. %s', e)
return []