From 117abcb92216cd6b1befd23f7588e011f20abde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=9D=D0=B5=D1=83?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=B2?= <99169437+aneustroev@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:28:19 +0500 Subject: [PATCH 1/2] Add python3.10 support --- jinjalint/util.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jinjalint/util.py b/jinjalint/util.py index dd114f6..931922c 100644 --- a/jinjalint/util.py +++ b/jinjalint/util.py @@ -1,5 +1,10 @@ import collections +try: + collections = collections.abc +except AttributeError: + collections = collections + def flatten(l): """ From 65d13cbc116a08eef71e3197a140def2d1a765ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=9D=D0=B5=D1=83?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=B2?= <99169437+aneustroev@users.noreply.github.com> Date: Tue, 19 Jul 2022 19:46:08 +0400 Subject: [PATCH 2/2] Update util.py --- jinjalint/util.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/jinjalint/util.py b/jinjalint/util.py index 931922c..9551e3b 100644 --- a/jinjalint/util.py +++ b/jinjalint/util.py @@ -1,9 +1,5 @@ -import collections - -try: - collections = collections.abc -except AttributeError: - collections = collections +import collections.abc +collections = collections.abc def flatten(l):