pyflakes fixes

This commit is contained in:
Romain Bignon 2011-12-04 12:02:44 +01:00
commit 3a02f12bdb
5 changed files with 11 additions and 19 deletions

View file

@ -19,8 +19,6 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
import re
from weboob.capabilities.bank import Account
from weboob.tools.browser import BasePage
@ -38,17 +36,17 @@ class AccountsList(BasePage):
for td in tr.getiterator('td'):
if td.attrib.get('class', '') == 'account-cb':
break
elif td.attrib.get('class', '') == 'account-name':
a = td.find('a')
account.label = a.text
account.link_id = a.get('href', '')
elif td.attrib.get('class', '') == 'account-number':
id = td.text
id = id.strip(u' \n\t')
account.id = id
elif td.attrib.get('class', '') == 'account-total':
span = td.find('span')
if span == None:
@ -60,7 +58,7 @@ class AccountsList(BasePage):
account.balance = float(balance)
else:
account.balance = 0.0
else:
# because of some weird useless <tr>
if account.id != 0: