1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-02-07 08:25:45 +01:00

Fix imports for collections abstract classes

This commit is contained in:
2022-12-04 18:18:07 +01:00
parent 76e604c951
commit 74abaf0de0
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ def debug():
# plugins {{{
class Plugins(collections.Mapping):
class Plugins(collections.abc.Mapping):
def __init__(self):
self._plugins = {}

View File

@@ -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.