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

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