Better variable naming

Thanks to DxCx
This commit is contained in:
Ruud committed 2011-12-16 22:34:33 +01:00
1 parent a6f9ad6330
commit 224d1527e1
19 files changed
+96 -95

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import xml.etree.ElementTree as XMLTree
log = CPLog(__name__)
class RSS():
class RSS(object):
def getTextElements(self, xml, path):
''' Find elements and return tree'''
+3 -4
View File
@@ -67,10 +67,9 @@ def getImdb(txt):
output.close()
try:
m = re.search('(?P<id>tt[0-9{7}]+)', txt)
id = m.group('id')
if id: return id
except AttributeError:
id = re.findall('imdb\.com\/title\/tt(\d{7})', txt)[0]
return id
except IndexError:
pass
return False