Mercurial > kallithea
changeset 8915:626644bc5d43 stable
webutils: monkeypatch to make webhelpers2 work with Python 3.10
Webhelpers2 is apparently a dead project and is using collections.Sequence directly.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 28 Sep 2021 15:59:54 +0200 |
parents | 5f4a108eed54 |
children | a0e39afe4be3 |
files | kallithea/lib/webutils.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/webutils.py Tue Sep 28 14:25:03 2021 +0200 +++ b/kallithea/lib/webutils.py Tue Sep 28 15:59:54 2021 +0200 @@ -20,6 +20,7 @@ imported anywhere - just like the global variables can be used everywhere. """ +import collections import datetime import json import logging @@ -66,6 +67,10 @@ 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 #