Skip to content

Commit 59f493a

Browse files
committed
Format Python code
Run 'black tools/check-links'.
1 parent 874ff85 commit 59f493a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/check-links

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Crawler:
9999
return hrefs
100100

101101
def in_allowed_file_soup(self, url_response) -> bool:
102-
return url_response.headers['Content-type'] in self.allowed_file_ext_for_soup
102+
return url_response.headers["Content-type"] in self.allowed_file_ext_for_soup
103103

104104
def report_error(self, error, packet) -> None:
105105
self.broken_links.append(packet.url)
@@ -122,7 +122,7 @@ class Crawler:
122122
self.report_error("fragment missing", packet)
123123
urls_from_page = self.get_urls_from_page(
124124
self.visted_urls_soup[packet.defraged_url]
125-
)
125+
)
126126
return urls_from_page
127127

128128
def check_mail_link(self, packet) -> None:

0 commit comments

Comments
 (0)