aboutsummaryrefslogtreecommitdiff
path: root/test/requests/link_checker.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/requests/link_checker.py')
-rw-r--r--test/requests/link_checker.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py
index 715f330c..df4d32d8 100644
--- a/test/requests/link_checker.py
+++ b/test/requests/link_checker.py
@@ -27,8 +27,7 @@ def get_links(doc):
lambda x: not (
is_root_link(x)
or is_mailto_link(x))
- , map(lambda y: y.get("href")
- , doc.cssselect("a")))
+ , [y.get("href") for y in doc.cssselect("a")])
def verify_link(link):
if link[0] == "#":