Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
avats-dev committed Sep 1, 2020
1 parent dcf50f1 commit dd6b36b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion link_checker/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def id_generator(data):
@pytest.mark.parametrize(
"filename, result, deed_result, rdf_result",
license_url_data,
ids=id_generator(license_url_data)
ids=id_generator(license_url_data),
)
def test_create_base_link(filename, result, deed_result, rdf_result):
args = link_checker.parse_argument([])
Expand Down
19 changes: 9 additions & 10 deletions link_checker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,14 @@ def create_base_link(args, filename, for_deeds=False, for_rdfs=False):
def create_absolute_link(base_url, link_analysis):
"""Creates absolute links from relative links
Args:
base_url (string): URL on which the license page will be displayed
link_analysis (class 'urllib.parse.SplitResult'): Link splitted by
urlsplit, that is to be converted
Returns:
str: absolute link
"""
Args:
base_url (string): URL on which the license page will be displayed
link_analysis (class 'urllib.parse.SplitResult'): Link splitted by
urlsplit, that is to be converted
Returns:
str: absolute link
"""
href = link_analysis.geturl()
# Check for relative link
if (
Expand Down Expand Up @@ -607,8 +607,7 @@ def map_links_file(link, file_url):


def output_write(args, *args_, **kwargs):
"""Prints to output file is --output-error flag is set
"""
"""Prints to output file is --output-error flag is set"""
if args.output_errors:
kwargs["file"] = args.output_errors
print(*args_, **kwargs)
Expand Down

0 comments on commit dd6b36b

Please sign in to comment.