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

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