From 38f267e0786a895eaff04b527ca70c46f74ae37c Mon Sep 17 00:00:00 2001 From: Nicolas Gattolin Date: Thu, 16 Aug 2018 11:48:42 +0200 Subject: [PATCH] [afer] py3 port Just usual transformations: unicode_literals and weboob compat imports --- modules/afer/browser.py | 3 +++ modules/afer/module.py | 1 + modules/afer/pages.py | 2 ++ tools/py3-compatible.modules | 1 + 4 files changed, 7 insertions(+) diff --git a/modules/afer/browser.py b/modules/afer/browser.py index 94b7c955fc..088f405746 100644 --- a/modules/afer/browser.py +++ b/modules/afer/browser.py @@ -17,9 +17,12 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . +from __future__ import unicode_literals + from random import randint from weboob.browser import URL, LoginBrowser, need_login from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable +from weboob.tools.compat import basestring from .pages import LoginPage, IndexPage, BadLogin, AccountDetailPage, AccountHistoryPage diff --git a/modules/afer/module.py b/modules/afer/module.py index 44585e1e5b..fe32854294 100644 --- a/modules/afer/module.py +++ b/modules/afer/module.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . +from __future__ import unicode_literals from weboob.capabilities.base import find_object from weboob.capabilities.bank import CapBankWealth, AccountNotFound diff --git a/modules/afer/pages.py b/modules/afer/pages.py index 33750996d9..b4667f8608 100644 --- a/modules/afer/pages.py +++ b/modules/afer/pages.py @@ -17,6 +17,8 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . +from __future__ import unicode_literals + from random import randint import requests diff --git a/tools/py3-compatible.modules b/tools/py3-compatible.modules index 06a3b2664b..94b274d68f 100644 --- a/tools/py3-compatible.modules +++ b/tools/py3-compatible.modules @@ -3,6 +3,7 @@ ## 750g adecco +afer agendaculturel agendadulibre allrecipes -- GitLab