Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ada_url/ada_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def __str__(self):

def __repr__(self):
duplicate = deepcopy(self)
duplicate.password = ''
if duplicate.password:
duplicate.password = ''
return f'<URL "{duplicate.href}">'

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ada-url"
version = "1.31.0"
version = "1.31.1"
authors = [
{name = "Bo Bayles", email = "bo@bbayles.com"},
]
Expand Down
4 changes: 4 additions & 0 deletions tests/test_ada_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def test_to_repr_password(self):
str(urlobj), 'https://user:password1@example.org/something.txt'
)

def test_repr_file(self):
url = URL('file:///')
repr(url)

def test_check_url(self):
for s, expected in (
('https:example.org', True),
Expand Down
Loading