diff --git a/kallithea/lib/webutils.py b/kallithea/lib/webutils.py --- a/kallithea/lib/webutils.py +++ b/kallithea/lib/webutils.py @@ -20,6 +20,7 @@ thread-local "global" variables. It shou imported anywhere - just like the global variables can be used everywhere. """ +import collections import datetime import json import logging @@ -66,6 +67,10 @@ assert truncate assert wrap_paragraphs +# work around webhelpers2 being a dead project that doesn't support Python 3.10 +collections.Sequence = collections.abc.Sequence + + # # General Kallithea URL handling #