a lot of pyflakes and pylint fixes

This commit is contained in:
Romain Bignon 2010-08-13 22:23:10 +02:00
commit 404d7290ba
43 changed files with 94 additions and 13 deletions

View file

@ -167,6 +167,7 @@ class TorrentsPage(BasePage):
div = self.document.getroot().cssselect('div#files_%s' % torrent.id)
if div:
torrent.files = []
for tr in div[0].find('table'):
if tr.attrib.get('class', None) != 'colhead_dark':
torrent.files.append(tr.find('td').text)