pyflakes fixes (unused imports)
This commit is contained in:
parent
9bf96190a0
commit
979f1764d4
6 changed files with 27 additions and 36 deletions
|
|
@ -19,15 +19,12 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import re
|
||||
from decimal import Decimal
|
||||
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.tools.browser import BasePage, BrokenPageError, BrowserPasswordExpired
|
||||
from weboob.tools.browser import BasePage, BrowserPasswordExpired
|
||||
from weboob.tools.json import json
|
||||
import unicodedata as ud
|
||||
|
||||
|
||||
__all__ = ['AccountsList', 'AccountPrelevement']
|
||||
|
||||
|
|
@ -43,7 +40,7 @@ class AccountsList(BasePage):
|
|||
|
||||
def on_loaded(self):
|
||||
pass
|
||||
|
||||
|
||||
def get_list(self, accounts_ids):
|
||||
l = []
|
||||
# Read the json data
|
||||
|
|
@ -60,13 +57,13 @@ class AccountsList(BasePage):
|
|||
account.type = self.ACCOUNT_TYPES.get(id_famille, Account.TYPE_UNKNOWN)
|
||||
account.id = 0
|
||||
account._link_id = 'KEY'+compte['key']
|
||||
|
||||
|
||||
# IBAN aren't in JSON
|
||||
# Fast method, get it from transfer page.
|
||||
for i,a in accounts_ids.items():
|
||||
if a.label == account.label:
|
||||
account.id = i
|
||||
# But it's doesn't work with LOAN and MARKET, so use slow method : Get it from transaction page.
|
||||
# But it's doesn't work with LOAN and MARKET, so use slow method : Get it from transaction page.
|
||||
if account.id == 0:
|
||||
account.id = self.browser.get_IBAN_from_account(account)
|
||||
l.append(account)
|
||||
|
|
|
|||
|
|
@ -21,13 +21,12 @@
|
|||
|
||||
import time
|
||||
import re
|
||||
from weboob.tools.mech import ClientForm
|
||||
import urllib
|
||||
|
||||
from weboob.tools.browser import BasePage, BrowserUnavailable
|
||||
from weboob.tools.captcha.virtkeyboard import VirtKeyboard,VirtKeyboardError
|
||||
|
||||
__all__ = ['LoginPage', 'ConfirmPage', 'ChangePasswordPage']
|
||||
|
||||
__all__ = ['LoginPage', 'ConfirmPage', 'InfoMessagePage']
|
||||
|
||||
|
||||
class HelloBankVirtKeyboard(VirtKeyboard):
|
||||
|
|
@ -60,7 +59,7 @@ class HelloBankVirtKeyboard(VirtKeyboard):
|
|||
coords["08"] = (185,100,203,121)
|
||||
coords["09"] = (262,100,280,121)
|
||||
coords["10"] = (339,100,357,121)
|
||||
|
||||
|
||||
VirtKeyboard.__init__(self,basepage.browser.openurl(self.url % time.time()),coords,self.color)
|
||||
self.check_symbols(self.symbols,basepage.browser.responses_dirname)
|
||||
|
||||
|
|
@ -90,7 +89,7 @@ class LoginPage(BasePage):
|
|||
except VirtKeyboardError,err:
|
||||
self.logger.error("Error: %s"%err)
|
||||
return False
|
||||
|
||||
|
||||
self.browser.select_form('logincanalnet')
|
||||
self.browser.set_all_readonly(False)
|
||||
self.browser['ch1'] = login.encode('utf-8')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue