Skip to content

Commit 67c8d23

Browse files
author
Christian Knittl-Frank
committed
Fix flake8 config and adhere code to flake8
1 parent 7c0906f commit 67c8d23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[flake8]
22
max-line-length = 88
33
extend-ignore =
4-
E203 # "Whitespace before ':'" - not PEP-8 compliant
5-
E501 # "Line too long (82 >= 79 characters)"
4+
E203
5+
E501
66
per-file-ignores =
77
__init__.py:F401

src/sphinxcontrib/email/handlers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def html_page_context_handler(
3333

3434
old_node.getparent().replace(old_node, new_node)
3535

36-
child_strs = map(
37-
lambda child: lxml.html.tostring(child, pretty_print=True, encoding="unicode"),
38-
tree.iterchildren(),
39-
)
36+
child_strs = [
37+
lxml.html.tostring(child, pretty_print=True, encoding="unicode")
38+
for child in tree.iterchildren()
39+
]
4040
context["body"] = "".join(child_strs)

0 commit comments

Comments
 (0)