From 2a5d07dd990e432610ad09ae72d12ed17725db70 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sun, 30 Aug 2020 23:46:35 +0530 Subject: [PATCH] Make linters happy --- src/mawek/body.py | 1 + src/mawek/code.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mawek/body.py b/src/mawek/body.py index 27a62633d..f1cfc531a 100644 --- a/src/mawek/body.py +++ b/src/mawek/body.py @@ -4,6 +4,7 @@ def wrap_tables(content): + """Wrap elements in
.""" soup = BeautifulSoup(content, "html.parser") for table in soup.find_all("table"): diff --git a/src/mawek/code.py b/src/mawek/code.py index d332db0ab..0fb680d0d 100644 --- a/src/mawek/code.py +++ b/src/mawek/code.py @@ -1,9 +1,9 @@ """Get information about the under-use pygments theme.""" -from pygments.style import Style from pygments.token import Text def get_pygments_style_colors(style, *, fallbacks): + """Get background/foreground colors for given pygments style.""" background = style.background_color text_colors = style.style_for_token(Text) foreground = text_colors["color"]