aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ryu18 <[email protected]>2021-08-07 01:00:29 +0200
committerGravatar Ryu18 <[email protected]>2021-08-07 01:00:29 +0200
commit93456475548ff883bd534ab5e0de62a29d9dc936 (patch)
treef330f2e2f6d535be957731fee87ad3af65d7c096
parentadded escape markdown in PythonNews (diff)
fix linting issues
-rw-r--r--bot/exts/info/python_news.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/python_news.py b/bot/exts/info/python_news.py
index 651a33d02..0b6e230b4 100644
--- a/bot/exts/info/python_news.py
+++ b/bot/exts/info/python_news.py
@@ -1,7 +1,7 @@
import logging
+import re
import typing as t
from datetime import date, datetime
-import re
import discord
import feedparser
@@ -75,7 +75,7 @@ class PythonNews(Cog):
@staticmethod
def escape_markdown(content: str) -> str:
- """Escape the markdown underlines"""
+ """Escape the markdown underlines."""
# taken from discord.utils.escape_markdown
return re.sub(r'[_\\~|]', lambda match: '\\' + match[0], content, 0, re.MULTILINE)