Commit e25bc0e6 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[americanexpress] port to python3

parent 88f066d0
......@@ -18,13 +18,11 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from urlparse import urlsplit, parse_qsl
from urllib import urlencode
from weboob.exceptions import BrowserIncorrectPassword
from weboob.browser.browsers import LoginBrowser, need_login
from weboob.browser.url import URL
from weboob.tools.capabilities.bank.transactions import sorted_transactions
from weboob.tools.compat import urlsplit, parse_qsl, urlencode
from .pages import (
LoginPage, AccountsPage, TransactionsPage, WrongLoginPage, AccountSuspendedPage,
......@@ -52,9 +50,6 @@ class AmericanExpressBrowser(LoginBrowser):
self.cache = {}
def do_login(self):
assert isinstance(self.username, basestring)
assert isinstance(self.password, basestring)
if not self.login.is_here():
self.location('/myca/logon/emea/action?request_type=LogonHandler&DestPage=https%3A%2F%2Fglobal.americanexpress.com%2Fmyca%2Fintl%2Facctsumm%2Femea%2FaccountSummary.do%3Frequest_type%3D%26Face%3Dfr_FR%26intlink%3Dtopnavvotrecompteneligne-HPmyca&Face=fr_FR&Info=CUExpired')
......
......@@ -21,7 +21,6 @@ from __future__ import unicode_literals
import datetime
import re
from urlparse import urljoin
from dateutil.relativedelta import relativedelta
from weboob.browser.elements import ItemElement, ListElement, method
......@@ -31,6 +30,7 @@ from weboob.browser.filters.html import AbsoluteLink
from weboob.capabilities.bank import Account
from weboob.capabilities import NotAvailable
from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Transaction
from weboob.tools.compat import urljoin
from weboob.tools.date import ChaoticDateGuesser, parse_french_date
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment