File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ description = "The Sphinx theme for the CPython docs and related projects"
1111readme = " README.md"
1212license.file = " LICENSE"
1313authors = [{name = " PyPA" , email = " distutils-sig@python.org" }]
14- requires-python = " >=3.8 "
14+ requires-python = " >=3.9 "
1515classifiers = [
1616 " Development Status :: 5 - Production/Stable" ,
1717 " Framework :: Sphinx :: Theme" ,
@@ -20,7 +20,6 @@ classifiers = [
2020 " Operating System :: OS Independent" ,
2121 " Programming Language :: Python" ,
2222 " Programming Language :: Python :: 3 :: Only" ,
23- " Programming Language :: Python :: 3.8" ,
2423 " Programming Language :: Python :: 3.9" ,
2524 " Programming Language :: Python :: 3.10" ,
2625 " Programming Language :: Python :: 3.11" ,
Original file line number Diff line number Diff line change 22
33import hashlib
44import os
5- from functools import lru_cache
5+ from functools import cache
66from pathlib import Path
77from typing import Any
88
1212THEME_PATH = Path (__file__ ).parent .resolve ()
1313
1414
15- @lru_cache ( maxsize = None )
15+ @cache
1616def _asset_hash (path : str ) -> str :
1717 """Append a `?digest=` to an url based on the file content."""
1818 full_path = THEME_PATH / path .replace ("_static/" , "static/" )
You can’t perform that action at this time.
0 commit comments