Skip to content
Myr

cleanup werkzeug import (#2582)

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

authored by Hsiaoming Yang · committed by Armin Ronacher · parent eebc0ed · Browse files · 2 files+3 added−16 removed
This commit

State

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

Diff stats

2 files+3 added−16 removed

  • other:+3 added−16 removed

2 files+3 added−16 removed

modified:flask/helpers.py+2 added-11 removed
20 unmodified lines
21import unicodedata22from werkzeug.routing import BuildError23from functools import update_wrapper2425try:26 from werkzeug.urls import url_quote25from werkzeug.urls import url_quote27except ImportError:28 from urlparse import quote as url_quote2926from werkzeug.datastructures import Headers, Range27from werkzeug.exceptions import BadRequest, NotFound, \28 RequestedRangeNotSatisfiable2934# this was moved in 0.735try:36 from werkzeug.wsgi import wrap_file30from werkzeug.wsgi import wrap_file37except ImportError:38 from werkzeug.utils import wrap_file3931from jinja2 import FileSystemLoader3233from .signals import message_flashed34from .globals import session, _request_ctx_stack, _app_ctx_stack, \
985 unmodified lines
modified:flask/testing.py+1 added-5 removed
13 unmodified lines
14from contextlib import contextmanager15from werkzeug.test import Client, EnvironBuilder16from flask import _request_ctx_stack17from flask.json import dumps as json_dumps18from werkzeug.urls import url_parse1919try:20 from werkzeug.urls import url_parse21except ImportError:22 from urlparse import urlsplit as url_parse202421def make_test_environ_builder(22 app, path='/', base_url=None, subdomain=None, url_scheme=None,23 *args, **kwargs24):
171 unmodified lines