aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/codeblock/parsing.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-05-06 13:53:11 -0700
committerGravatar MarkKoz <[email protected]>2020-06-13 11:21:05 -0700
commit3fe6c4aac91b691de9b60c9fd89d23539a18b9a4 (patch)
tree2e2e388d7ded256a759825dd626648fb9f21c326 /bot/cogs/codeblock/parsing.py
parentCode block: use new formatting functions in on_message (diff)
Code block: use find_code_blocks to check if an edited msg was fixed
* Remove has_bad_ticks - it's obsolete
Diffstat (limited to '')
-rw-r--r--bot/cogs/codeblock/parsing.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/cogs/codeblock/parsing.py b/bot/cogs/codeblock/parsing.py
index bb71aaaaf..88a5c7b7a 100644
--- a/bot/cogs/codeblock/parsing.py
+++ b/bot/cogs/codeblock/parsing.py
@@ -3,8 +3,6 @@ import logging
import re
from typing import NamedTuple, Sequence
-import discord
-
log = logging.getLogger(__name__)
BACKTICK = "`"
@@ -63,11 +61,6 @@ def find_code_blocks(message: str) -> Sequence[CodeBlock]:
code_blocks.append(code_block)
-def has_bad_ticks(message: discord.Message) -> bool:
- """Return True if `message` starts with 3 characters which look like but aren't '`'."""
- return message.content[:3] in TICKS
-
-
def is_python_code(content: str) -> bool:
"""Return True if `content` is valid Python consisting of more than just expressions."""
try: