aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/codeblock/parsing.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-06-27 16:09:54 -0700
committerGravatar MarkKoz <[email protected]>2020-06-27 16:09:54 -0700
commit94017fdf0e3c9805e3ead81823f3870d3834edd5 (patch)
treec0570434b1598ca8d2d3f2621ed3e59405072909 /bot/cogs/codeblock/parsing.py
parentMerge remote-tracking branch 'origin/master' into bug/utility/829/non-py-code... (diff)
Code block: rename BadLanguage attributes
The `has_` prefix it clarifies that they're booleans. Co-authored-by: Numerlor <[email protected]>
Diffstat (limited to '')
-rw-r--r--bot/cogs/codeblock/parsing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/codeblock/parsing.py b/bot/cogs/codeblock/parsing.py
index 89f8111fc..73b6a874e 100644
--- a/bot/cogs/codeblock/parsing.py
+++ b/bot/cogs/codeblock/parsing.py
@@ -60,8 +60,8 @@ class BadLanguage(NamedTuple):
"""Parsed information about a poorly formatted language specifier."""
language: str
- leading_spaces: bool
- terminal_newline: bool
+ has_leading_spaces: bool
+ has_terminal_newline: bool
def find_code_blocks(message: str) -> Optional[Sequence[CodeBlock]]: