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 <>.
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 import sorted_transactions
from 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():
......@@ -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 import Account
from weboob.capabilities import NotAvailable
from import FrenchTransaction as Transaction
from import urljoin
from 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