diff options
| author | 2021-01-11 02:52:34 +0100 | |
|---|---|---|
| committer | 2021-01-11 02:52:34 +0100 | |
| commit | 780dbc7683c7ce9cece6f0707840f56005466dfe (patch) | |
| tree | 924b3f9619b4a95aa4871ca000c9e5c6cc52151c | |
| parent | Check for containment instead of always getting the value from the dict (diff) | |
Remove old reference to CachedParser and unused const
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index b35469787..bc230b74b 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -2,7 +2,6 @@ from __future__ import annotations import asyncio import logging -import re import sys import textwrap from collections import defaultdict @@ -34,7 +33,6 @@ FORCE_PREFIX_GROUPS = ( "pdbcommand", "term", ) -WHITESPACE_AFTER_NEWLINES_RE = re.compile(r"(?<=\n\n)(\s+)") NOT_FOUND_DELETE_DELAY = RedirectOutput.delete_delay # Delay to wait before trying to reach a rescheduled inventory again, in minutes FETCH_RESCHEDULE_DELAY = SimpleNamespace(first=2, repeated=5) @@ -238,8 +236,7 @@ class DocCog(commands.Cog): If the symbol is known, an Embed with documentation about it is returned. - First check the DocRedisCache before querying the cog's `CachedParser`, - if not present also create a redis entry for the symbol. + First check the DocRedisCache before querying the cog's `BatchParser`. """ log.trace(f"Building embed for symbol `{symbol}`") if not REFRESH_EVENT.is_set(): |