diff options
| author | 2019-11-15 13:35:44 +0100 | |
|---|---|---|
| committer | 2019-11-15 13:35:44 +0100 | |
| commit | f1180d9cd05329f61439c8a45dedb47e841e7216 (patch) | |
| tree | 935c0ea30aea2462294ca07581a749c724d5f282 | |
| parent | Add variable info after comment was deleted (diff) | |
group and order constants
| -rw-r--r-- | bot/cogs/doc.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 76fdcd831..dc53937ee 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -26,7 +26,6 @@ from bot.pagination import LinePaginator log = logging.getLogger(__name__) logging.getLogger('urllib3').setLevel(logging.WARNING) -NOT_FOUND_DELETE_DELAY = RedirectOutput.delete_delay NO_OVERRIDE_GROUPS = ( "2to3fixer", "token", @@ -37,8 +36,7 @@ NO_OVERRIDE_GROUPS = ( NO_OVERRIDE_PACKAGES = ( "python", ) -FAILED_REQUEST_RETRY_AMOUNT = 3 -UNWANTED_SIGNATURE_SYMBOLS_RE = re.compile(r"\[source]|\\\\|¶") + SEARCH_END_TAG_ATTRS = ( "data", "function", @@ -49,8 +47,12 @@ SEARCH_END_TAG_ATTRS = ( "rubric", "sphinxsidebar", ) +UNWANTED_SIGNATURE_SYMBOLS_RE = re.compile(r"\[source]|\\\\|¶") WHITESPACE_AFTER_NEWLINES_RE = re.compile(r"(?<=\n\n)(\s+)") +FAILED_REQUEST_RETRY_AMOUNT = 3 +NOT_FOUND_DELETE_DELAY = RedirectOutput.delete_delay + def async_cache(max_size: int = 128, arg_offset: int = 0) -> Callable: """ |