Skip to content

Commit

Permalink
deprecate werkzeug.urls
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Mar 2, 2023
1 parent aa2a0c5 commit 19d55c1
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 27 deletions.
3 changes: 1 addition & 2 deletions src/werkzeug/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
from .sansio.multipart import MultipartEncoder
from .sansio.multipart import Preamble
from .urls import iri_to_uri
from .urls import url_fix
from .utils import cached_property
from .utils import get_content_type
from .wrappers.request import Request
Expand Down Expand Up @@ -391,7 +390,7 @@ def __init__(
self.path = iri_to_uri(request_uri.path)
self.request_uri = path
if base_url is not None:
base_url = url_fix(iri_to_uri(base_url, charset), charset)
base_url = iri_to_uri(base_url, charset)
self.base_url = base_url # type: ignore
if isinstance(query_string, (bytes, str)):
self.query_string = query_string
Expand Down
Loading

0 comments on commit 19d55c1

Please sign in to comment.