You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.py is incompatible with Python3. Suggested fix:
import six
...
def _inject_filters(app, filters):
"""Inject a set of filters into a Flask app.
Args:
app (object): The Flask application.
filters (dict): A dictionary of name and functions.
Returns:
app (object): The Flask application.
"""
for name, func in six.iteritems(filters):
app.jinja_env.filters[name] = func
return app
...
def _inject_template_globals(app, funcs):
"""Inject a set of functions into a Flask app as template_globals.
Args:
app (object): The Flask application.
funcs (dict): A dictionary of name and functions.
Returns:
app (object): The Flask application.
"""
for name, func in six.iteritems(funcs):
app.add_template_global(name, func)
return app
Cheers
The text was updated successfully, but these errors were encountered:
config.py is incompatible with Python3. Suggested fix:
Cheers
The text was updated successfully, but these errors were encountered: