diff options
author | BonfaceKilz | 2020-08-19 02:00:11 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-19 02:33:46 +0300 |
commit | 06edbb8455f1e85a3818c33c4ef4d42e6a061d43 (patch) | |
tree | 2ed7a576394f46e93512815cb6b02951ac64a58e /test | |
parent | 4e10f4bd8fb902810ee033abb8d509ab641308e1 (diff) | |
download | genenetwork2-06edbb8455f1e85a3818c33c4ef4d42e6a061d43.tar.gz |
Wrap `map()` in a `list` call
Run `2to3-3.8 -f map -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map>
Diffstat (limited to 'test')
-rw-r--r-- | test/requests/link_checker.py | 3 |
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] == "#": |