diff --git a/docs/source/guides/module.rst b/docs/source/guides/module.rst index d8b598e7984c6957429dfacb53e75523c7fc09d5..a73ccc226a6236eb29854d46337726e21348497f 100644 --- a/docs/source/guides/module.rst +++ b/docs/source/guides/module.rst @@ -85,7 +85,7 @@ Then, you can edit ``backend.py`` and create your :class:`BaseBackend ' % (self.klass.MAINTAINER, self.klass.EMAIL) + return u'%s <%s>' % (self.klass.MAINTAINER, self.klass.EMAIL) @property def version(self): diff --git a/weboob/tools/application/qt/qt.py b/weboob/tools/application/qt/qt.py index 24bbf597434ba7d82b68423d415e962295892131..1a75df157ac05b3c4cad9de328f8cb3fe907a439 100644 --- a/weboob/tools/application/qt/qt.py +++ b/weboob/tools/application/qt/qt.py @@ -176,8 +176,8 @@ def default_eb(self, backend, error, backtrace): if not msg: msg = 'Website is unavailable.' elif isinstance(error, NotImplementedError): - msg = 'This feature is not supported by this backend.\n\n' \ - 'To help the maintainer of this backend implement this feature, please contact: %s <%s>' % (backend.MAINTAINER, backend.EMAIL) + msg = u'This feature is not supported by this backend.\n\n' \ + u'To help the maintainer of this backend implement this feature, please contact: %s <%s>' % (backend.MAINTAINER, backend.EMAIL) elif isinstance(error, UserError): if not msg: msg = type(error).__name__ diff --git a/weboob/tools/backend.py b/weboob/tools/backend.py index 9baa4c1fa11a72b386123a210f61b9a257e32f6b..5b9033fd94c8579bbc7f9859c3c85ba27ae115e3 100644 --- a/weboob/tools/backend.py +++ b/weboob/tools/backend.py @@ -223,7 +223,7 @@ class BaseBackend(object): # Backend name. NAME = None # Name of the maintainer of this backend. - MAINTAINER = '' + MAINTAINER = u'' # Email address of the maintainer. EMAIL = '' # Version of backend (for information only). diff --git a/weboob/tools/capabilities/gallery/genericcomicreader.py b/weboob/tools/capabilities/gallery/genericcomicreader.py index 6f3a09bfffd972f21e4de789b69d74a3891c6706..f3b52527bb00dfe57152e47070d2d2ae34de59ba 100644 --- a/weboob/tools/capabilities/gallery/genericcomicreader.py +++ b/weboob/tools/capabilities/gallery/genericcomicreader.py @@ -66,7 +66,7 @@ def fill_image(self, image, fields): class GenericComicReaderBackend(BaseBackend, ICapGallery): NAME = 'genericcomicreader' - MAINTAINER = 'Noé Rubinstein' + MAINTAINER = u'Noé Rubinstein' EMAIL = 'noe.rubinstein@gmail.com' VERSION = '0.d' DESCRIPTION = 'Generic comic reader backend; subclasses implement specific sites' diff --git a/weboob/tools/capabilities/messages/GenericBackend.py b/weboob/tools/capabilities/messages/GenericBackend.py index d863001f3be4fa0ec7cb9d5a73cc37a4bd6e4004..cb23af24fbde4b18a526c4cc586ed8403416c220 100644 --- a/weboob/tools/capabilities/messages/GenericBackend.py +++ b/weboob/tools/capabilities/messages/GenericBackend.py @@ -30,7 +30,7 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages): """ GenericNewspaperBackend class """ - MAINTAINER = 'Julien Hebert' + MAINTAINER = u'Julien Hebert' EMAIL = 'juke@free.fr' VERSION = '0.d' LICENSE = 'AGPLv3+'