Skip to content
Myr

Fixed JSON availability test. This fixes #77

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 362cf49 · Browse files · 1 file+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−2 removed

  • other:+6 added−2 removed

1 file+6 added−2 removed

modified:flask/__init__.py+6 added-2 removed
15 unmodified lines
16from jinja2 import Markup, escape1718from flask.app import Flask, Request, Response19from flask.config import Config20from flask.helpers import url_for, jsonify, json_available, flash, send_file, \21 get_flashed_messages, get_template_attribute, json20from flask.helpers import url_for, jsonify, json_available, flash, \21 send_file, get_flashed_messages, get_template_attribute22from flask.globals import current_app, g, request, session, _request_ctx_stack23from flask.module import Module24from flask.templating import render_template, render_template_string2526# only import json if it's available27if json_available:28 from flask.helpers import json