Skip to content

Commit dc9f637

Browse files
authored
Version 1.3.0 (#32)
1 parent 670de7f commit dc9f637

File tree

5 files changed

+9595
-3
lines changed

5 files changed

+9595
-3
lines changed

Diff for: ada_url/ada_adapter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def __getattr__(self, attr: str) -> Union[str, HostType, SchemeType]:
243243
def __setattr__(self, attr: str, value: str) -> None:
244244
if attr in SET_ATTRIBUTES:
245245
try:
246-
value_bytes = value.encode()
246+
value_bytes = value.encode('utf-8')
247247
except Exception:
248248
raise ValueError(f'Invalid value for {attr}') from None
249249

@@ -455,7 +455,7 @@ def replace_url(s: str, **kwargs: str) -> str:
455455
continue
456456

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

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ada-url
3-
version = 1.2.0
3+
version = 1.3.0
44
description = 'URL parser and manipulator based on the WHAT WG URL standard'
55
long_description = file: README.rst
66
long_description_content_type = text/x-rst

0 commit comments

Comments
 (0)