Skip to content

Commit

Permalink
style(article_info.py): Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Oct 24, 2024
1 parent 6235899 commit 585d08e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rocm_docs/article_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def _set_page_article_info(

if read_time == "":
soup = bs4.BeautifulSoup(modified_info, "html.parser")
svg_to_remove = soup.find("span", class_="article-info-read-time-svg")
svg_to_remove = soup.find(
"span", class_="article-info-read-time-svg"
)
if svg_to_remove and isinstance(svg_to_remove, bs4.Tag):
svg_to_remove.decompose()
modified_info = str(soup)
Expand Down

0 comments on commit 585d08e

Please sign in to comment.