Skip to content

Commit 3140871

Browse files
authored
py38 compat
1 parent b9a37b3 commit 3140871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinxlint/rst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- All constants are ALL_CAPS
55
- All compiled regexes are suffixed by _RE
66
"""
7-
from functools import cache
7+
from functools import lru_cache
88

99
import regex as re
1010

@@ -152,7 +152,7 @@
152152
UNICODE_ALLOWED_AFTER_INLINE_MARKUP = r"\p{Pe}\p{Pi}\p{Pf}\p{Pd}\p{Po}"
153153

154154

155-
@cache
155+
@lru_cache(maxsize=None)
156156
def inline_markup_gen(start_string, end_string, extra_allowed_before=""):
157157
"""Generate a regex matching an inline markup.
158158

0 commit comments

Comments
 (0)