Skip to content

Commit 31e2ccb

Browse files
committed
adapte Template-Toolkit-Python to Python 3.10+
1 parent 2ee9226 commit 31e2ccb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

comiclib/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
from fastapi.security import OAuth2PasswordBearer
1919
from fastapi.staticfiles import StaticFiles
2020

21+
# https://github.com/lmr/Template-Toolkit-Python/pull/2
22+
import collections.abc
23+
collections.Callable = collections.abc.Callable
2124
from template import Template
2225

2326
from . import frontend_boost

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ dependencies = [
2222
'sqlalchemy',
2323
'python-multipart',
2424
'pillow',
25-
'Template-Toolkit-Python ; python_version < "3.10"',
26-
'Template-Toolkit-Python-2 ; python_version >= "3.10"',
25+
'Template-Toolkit-Python',
2726
'watchfiles',
2827
'requests'
2928
]

0 commit comments

Comments
 (0)