@jinja2.contextfilter
def format_date(ctx, *args, **kwargs):
    request = ctx.get("request") and get_current_request()
    kwargs.setdefault("locale", request.locale)
    return babel.dates.format_date(*args, **kwargs)
dataset/ETHPy150Open pypa/warehouse/warehouse/i18n/filters.py/format_date/operator `or` -> `and`