Skip to content

Commit

Permalink
Version 1.3.0 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles authored Sep 9, 2023
1 parent 670de7f commit dc9f637
Show file tree
Hide file tree
Showing 5 changed files with 9,595 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ada_url/ada_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def __getattr__(self, attr: str) -> Union[str, HostType, SchemeType]:
def __setattr__(self, attr: str, value: str) -> None:
if attr in SET_ATTRIBUTES:
try:
value_bytes = value.encode()
value_bytes = value.encode('utf-8')
except Exception:
raise ValueError(f'Invalid value for {attr}') from None

Expand Down Expand Up @@ -455,7 +455,7 @@ def replace_url(s: str, **kwargs: str) -> str:
continue

try:
value_bytes = value.encode()
value_bytes = value.encode('utf-8')
except Exception:
raise ValueError(f'Invalid value for {attr}') from None

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ada-url
version = 1.2.0
version = 1.3.0
description = 'URL parser and manipulator based on the WHAT WG URL standard'
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down
Loading

0 comments on commit dc9f637

Please sign in to comment.