pyflakes fixes
This commit is contained in:
parent
c5e68a2c44
commit
3a02f12bdb
5 changed files with 11 additions and 19 deletions
|
|
@ -19,14 +19,10 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import re
|
||||
from datetime import date
|
||||
|
||||
from weboob.tools.misc import to_unicode
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.capabilities.bank import Operation
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
|
||||
|
||||
__all__ = ['AccountHistory']
|
||||
|
|
@ -53,16 +49,16 @@ class AccountHistory(BasePage):
|
|||
|
||||
category = labeldiv.attrib.get('title', '')
|
||||
useless, sep, category = [part.strip() for part in category.partition(':')]
|
||||
|
||||
|
||||
amount = tds[3].text
|
||||
if amount == None:
|
||||
amount = tds[4].text
|
||||
amount = amount.strip(u' \n\t\x80').replace(' ', '').replace(',', '.')
|
||||
|
||||
|
||||
# if we don't have exactly one '.', this is not a floatm try the next
|
||||
operation = Operation(len(self.operations))
|
||||
operation.amount = float(amount)
|
||||
|
||||
|
||||
operation.date = d
|
||||
operation.label = label
|
||||
operation.category = category
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue