Fix crashes with unicode characters in maintainer name

Change every mention of MAINTAINER to avoid future issues.
This commit is contained in:
Laurent Bachelier 2012-10-24 13:29:30 +02:00
commit 3a66728392
72 changed files with 73 additions and 73 deletions

View file

@ -176,8 +176,8 @@ class QtDo(QObject):
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__

View file

@ -223,7 +223,7 @@ class BaseBackend(object):
# Backend name.
NAME = None
# Name of the maintainer of this backend.
MAINTAINER = '<unspecified>'
MAINTAINER = u'<unspecified>'
# Email address of the maintainer.
EMAIL = '<unspecified>'
# Version of backend (for information only).

View file

@ -66,7 +66,7 @@ class GenericComicReaderBrowser(BaseBrowser):
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'

View file

@ -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+'