From 8a80593cadf4955f1b84c15563ef4eb61ddf517e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20V=C3=A9szi?= Date: Wed, 10 Nov 2021 15:28:36 +0100 Subject: [PATCH 1/2] python 3.10 moved Sequence into collections.abc --- bonobo/util/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonobo/util/collections.py b/bonobo/util/collections.py index e573f263..4e20f8b4 100644 --- a/bonobo/util/collections.py +++ b/bonobo/util/collections.py @@ -1,6 +1,6 @@ import bisect import functools -from collections import Sequence +from collections.abc import Sequence class sortedlist(list): From 336ac90d0bebae5fb05d365d4ed57c784624ed8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20V=C3=A9szi?= Date: Wed, 10 Nov 2021 17:43:43 +0100 Subject: [PATCH 2/2] django breaks if we return a list --- bonobo/contrib/django/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonobo/contrib/django/commands.py b/bonobo/contrib/django/commands.py index e96eac4a..34dcae2d 100644 --- a/bonobo/contrib/django/commands.py +++ b/bonobo/contrib/django/commands.py @@ -78,6 +78,6 @@ def handle(self, *args, **options): self.stderr.style_func = lambda x: Fore.LIGHTRED_EX + Back.RED + "!" + Style.RESET_ALL + " " + x try: - return self.run(*args, **options) + self.run(*args, **options) finally: self.stdout, self.stderr = _stdout_backup, _stderr_backup