

def __init__(self, app=None, renderers=('json', 'jinja2'), default_renderer='html'):
    self.mime_type_renderers = {
        
    }
    self.named_renderers = {
        
    }
    self.normalizer_overrides = defaultdict((lambda : []))
    self.normalizers = {
        basestring: normalizers.normalize_basestring,
        list: normalizers.normalize_iterable,
        tuple: normalizers.normalize_iterable,
        GeneratorType: normalizers.normalize_iterable,
        dict: normalizers.normalize_dict,
        int: normalizers.normalize_int,
        long: normalizers.normalize_int,
        float: normalizers.normalize_float,
        bool: normalizers.normalize_bool,
        NoneType: normalizers.normalize_none,
        datetime.datetime: normalizers.normalize_basestring,
        datetime.date: normalizers.normalize_basestring,
        datetime.time: normalizers.normalize_basestring,
    }
    self.app = (app or None)
    for renderer in renderers:
        if isinstance(renderer, basestring):
            renderer = getattr(_renderers, ('%s_renderer' % renderer))
        self.register_renderer(renderer)
    if isinstance(default_renderer, basestring):
        if (default_renderer in self.named_renderers):
            default_renderer = renderers.named_renderers[default_renderer]
        else:
            self.logger.warning("Attempted to set the unrenderable format '%s' as the default format, disabling", default_renderer)
            default_renderer = None
    self.default_renderer = default_renderer
    if app:
        self.init_app(app)

dataset/ETHPy150Open teozkr/Flask-Pushrod/flask_pushrod/resolver.py Pushrod.__init__/VarMisuse@235/303 `self`->`renderers`