Skip to content

Commit

Permalink
cleanup werkzeug import (pallets#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture authored and mitsuhiko committed Jan 6, 2018
1 parent eebc0ed commit 22e0723
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
13 changes: 2 additions & 11 deletions flask/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,12 @@
from werkzeug.routing import BuildError
from functools import update_wrapper

try:
from werkzeug.urls import url_quote
except ImportError:
from urlparse import quote as url_quote

from werkzeug.urls import url_quote
from werkzeug.datastructures import Headers, Range
from werkzeug.exceptions import BadRequest, NotFound, \
RequestedRangeNotSatisfiable

# this was moved in 0.7
try:
from werkzeug.wsgi import wrap_file
except ImportError:
from werkzeug.utils import wrap_file

from werkzeug.wsgi import wrap_file
from jinja2 import FileSystemLoader

from .signals import message_flashed
Expand Down
6 changes: 1 addition & 5 deletions flask/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
from werkzeug.test import Client, EnvironBuilder
from flask import _request_ctx_stack
from flask.json import dumps as json_dumps

try:
from werkzeug.urls import url_parse
except ImportError:
from urlparse import urlsplit as url_parse
from werkzeug.urls import url_parse


def make_test_environ_builder(
Expand Down

0 comments on commit 22e0723

Please sign in to comment.