From 74abaf0de06438641c1327ffcf43c4b985d0b029 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 4 Dec 2022 18:18:07 +0100 Subject: [PATCH] Fix imports for collections abstract classes --- ebook_converter/constants_old.py | 2 +- ebook_converter/css_selectors/ordered_set.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ebook_converter/constants_old.py b/ebook_converter/constants_old.py index 48b84d5..8e0b49d 100644 --- a/ebook_converter/constants_old.py +++ b/ebook_converter/constants_old.py @@ -32,7 +32,7 @@ def debug(): # plugins {{{ -class Plugins(collections.Mapping): +class Plugins(collections.abc.Mapping): def __init__(self): self._plugins = {} diff --git a/ebook_converter/css_selectors/ordered_set.py b/ebook_converter/css_selectors/ordered_set.py index c85b456..c40e1dd 100644 --- a/ebook_converter/css_selectors/ordered_set.py +++ b/ebook_converter/css_selectors/ordered_set.py @@ -19,7 +19,7 @@ def is_iterable(obj): return hasattr(obj, '__iter__') and not isinstance(obj, (str, bytes)) -class OrderedSet(collections.MutableSet): +class OrderedSet(collections.abc.MutableSet): """ An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up.