Blame SOURCES/0001-python3.10-fix-ImportError.patch

rdobuilder 8229e4
From ff1277a665997f340c8926fe1cb9a9c0c4fe3432 Mon Sep 17 00:00:00 2001
rdobuilder 8229e4
From: Tomas Hrnciar <thrnciar@redhat.com>
rdobuilder 8229e4
Date: Mon, 8 Feb 2021 10:55:57 +0100
rdobuilder 8229e4
Subject: [PATCH] python3.10 fix ImportError
rdobuilder 8229e4
rdobuilder 8229e4
---
rdobuilder 8229e4
 tabulate.py | 5 +----
rdobuilder 8229e4
 1 file changed, 1 insertion(+), 4 deletions(-)
rdobuilder 8229e4
rdobuilder 8229e4
diff --git a/tabulate.py b/tabulate.py
rdobuilder 8229e4
index e035a8c..fac90e5 100644
rdobuilder 8229e4
--- a/tabulate.py
rdobuilder 8229e4
+++ b/tabulate.py
rdobuilder 8229e4
@@ -10,10 +10,7 @@ import re
rdobuilder 8229e4
 import math
rdobuilder 8229e4
 
rdobuilder 8229e4
 
rdobuilder 8229e4
-if python_version_tuple() >= ("3", "3", "0"):
rdobuilder 8229e4
-    from collections.abc import Iterable
rdobuilder 8229e4
-else:
rdobuilder 8229e4
-    from collections import Iterable
rdobuilder 8229e4
+from collections.abc import Iterable
rdobuilder 8229e4
 
rdobuilder 8229e4
 if python_version_tuple()[0] < "3":
rdobuilder 8229e4
     from itertools import izip_longest
rdobuilder 8229e4
-- 
rdobuilder 8229e4
2.29.2
rdobuilder 8229e4