From b46b1211128f21c3b56fab1b61e547ecd71d8c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Tue, 20 Feb 2024 16:29:51 +0100 Subject: [PATCH] Backporting to Python 3.8. --- nikola/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nikola/utils.py b/nikola/utils.py index d67e136a8..69b2c7fde 100644 --- a/nikola/utils.py +++ b/nikola/utils.py @@ -41,7 +41,7 @@ import sys import threading from collections import defaultdict, OrderedDict -from collections.abc import Callable, Iterable +from collections.abc import Callable from html import unescape as html_unescape from importlib import reload as _reload from unicodedata import normalize as unicodenormalize @@ -60,7 +60,7 @@ from doit import tools from doit.cmdparse import CmdParse from nikola.packages.pygments_better_html import BetterHtmlFormatter -from typing import Any, Dict, List, Mapping, Match, Optional, Tuple, Union +from typing import Any, Dict, Iterable, List, Mapping, Match, Optional, Tuple, Union from unidecode import unidecode # Renames