forked from orbit-oss/flask
Switch to explicit Werkzeug imports
This commit is contained in:
parent
6ca321c979
commit
2866ccda1f
7 changed files with 17 additions and 10 deletions
|
|
@ -36,9 +36,15 @@ except ImportError:
|
|||
json_available = False
|
||||
|
||||
|
||||
from werkzeug import Headers, wrap_file
|
||||
from werkzeug.datastructures import Headers
|
||||
from werkzeug.exceptions import NotFound
|
||||
|
||||
# this was moved in 0.7
|
||||
try:
|
||||
from werkzeug.wsgi import wrap_file
|
||||
except ImportError:
|
||||
from werkzeug.utils import wrap_file
|
||||
|
||||
from jinja2 import FileSystemLoader
|
||||
|
||||
from .globals import session, _request_ctx_stack, current_app, request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue