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

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