Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/blame/commit/d2bbc479bcf7044d5f6a1c435adac161a29112fb/libs/stevedore/example/base.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/stevedore/example/base.py

23 lines
534 B

import abc
import six
@six.add_metaclass(abc.ABCMeta)
class FormatterBase(object):
"""Base class for example plugin used in the tutorial.
"""
def __init__(self, max_width=60):
self.max_width = max_width
@abc.abstractmethod
def format(self, data):
"""Format the data and return unicode text.
:param data: A dictionary with string keys and simple types as
values.
:type data: dict(str:?)
:returns: Iterable producing the formatted text.
"""