diff --git a/modules/onlinenet/module.py b/modules/onlinenet/module.py
index f3191ab8bf6d97c8352b341c2c56c3163351214d..844433a12fa25b5c11713455c1f035aaf79d47bb 100644
--- a/modules/onlinenet/module.py
+++ b/modules/onlinenet/module.py
@@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
+from __future__ import unicode_literals
from weboob.capabilities.bill import DocumentTypes, CapDocument, Subscription, Document, SubscriptionNotFound, DocumentNotFound
from weboob.capabilities.base import find_object, NotAvailable
@@ -31,8 +32,8 @@
class OnlinenetModule(Module, CapDocument):
NAME = 'onlinenet'
- DESCRIPTION = u'Online.net'
- MAINTAINER = u'Edouard Lambert'
+ DESCRIPTION = 'Online.net'
+ MAINTAINER = 'Edouard Lambert'
EMAIL = 'elambert@budget-insight.com'
LICENSE = 'LGPLv3+'
VERSION = '1.6'
diff --git a/modules/onlinenet/pages.py b/modules/onlinenet/pages.py
index b19d79998ac7e4cfc01cc7db3153ee1dbd9242bc..42fd0135c7dc0dfaafd29a233701e2aaa9bc6f0d 100644
--- a/modules/onlinenet/pages.py
+++ b/modules/onlinenet/pages.py
@@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
+from __future__ import unicode_literals
import re
@@ -56,9 +57,9 @@ class get_bills(TableElement):
item_xpath = '//h3[contains(text(), "bills")]/following-sibling::table//tr[position() > 1]'
head_xpath = '//h3[contains(text(), "bills")]/following-sibling::table//tr/th'
- col_id = u'Id'
- col_date = u'Date'
- col_price = u'Total TTC'
+ col_id = 'Id'
+ col_date = 'Date'
+ col_price = 'Total TTC'
class item(ItemElement):
klass = Bill
@@ -66,11 +67,11 @@ class item(ItemElement):
obj_id = Format('%s_%s', Env('username'), CleanDecimal(TableCell('id')))
obj__url = Attr('.//a[contains(text(), "PDF")]', 'href', default=NotAvailable)
obj_date = Date(CleanText(TableCell('date')))
- obj_format = u"pdf"
+ obj_format = 'pdf'
obj_label = Format('Facture %s', CleanDecimal(TableCell('id')))
obj_type = DocumentTypes.BILL
obj_price = CleanDecimal(TableCell('price'))
- obj_currency = u'EUR'
+ obj_currency = 'EUR'
def condition(self):
return CleanText(TableCell('id'))(self) != "No bills"
@@ -88,7 +89,7 @@ class item(ItemElement):
obj_id = Format('%s_%s', Env('username'), Env('docid'))
obj__url = Attr('.', 'href')
- obj_format = u"pdf"
+ obj_format = 'pdf'
obj_label = CleanText('.')
obj_type = DocumentTypes.OTHER
diff --git a/tools/py3-compatible.modules b/tools/py3-compatible.modules
index 3a4f07439e75aee5eb2d7c283d791f4147156911..9decaaa26e925e1e68d60052e506b3958a50cf01 100644
--- a/tools/py3-compatible.modules
+++ b/tools/py3-compatible.modules
@@ -121,6 +121,7 @@ nectarine
nef
nova
oney
+onlinenet
opensubtitles
orange
ouifm