Skip to content

Commit

Permalink
Fix clean_url method name
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Mar 7, 2024
1 parent 4d31f8e commit a4cb27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimit/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def run(raw_args):
user_agent += f" {zimit_args.adminEmail}"

if url:
url = clean_url(url)
url = get_cleaned_url(url)

Check warning on line 394 in src/zimit/zimit.py

View check run for this annotation

Codecov / codecov/patch

src/zimit/zimit.py#L394

Added line #L394 was not covered by tests
warc2zim_args.append("--url")
warc2zim_args.append(url)

Expand Down Expand Up @@ -507,7 +507,7 @@ def cleanup():
return warc2zim(warc2zim_args)


def clean_url(url: str):
def get_cleaned_url(url: str):
parsed_url = urllib.parse.urlparse(url)

# remove explicit port in URI for default-for-scheme as browsers does it
Expand Down

0 comments on commit a4cb27a

Please sign in to comment.