# HG changeset patch # User Mads Kiilerich # Date 1632837594 -7200 # Node ID 626644bc5d43c8f645f31631e871f7198206c537 # Parent 5f4a108eed541ed4200167cf660d33d2947ce955 webutils: monkeypatch to make webhelpers2 work with Python 3.10 Webhelpers2 is apparently a dead project and is using collections.Sequence directly. diff -r 5f4a108eed54 -r 626644bc5d43 kallithea/lib/webutils.py --- 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 #