mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-31 17:33:32 +02:00
Fix imports for collections abstract classes
This commit is contained in:
@@ -32,7 +32,7 @@ def debug():
|
|||||||
# plugins {{{
|
# plugins {{{
|
||||||
|
|
||||||
|
|
||||||
class Plugins(collections.Mapping):
|
class Plugins(collections.abc.Mapping):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._plugins = {}
|
self._plugins = {}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def is_iterable(obj):
|
|||||||
return hasattr(obj, '__iter__') and not isinstance(obj, (str, bytes))
|
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
|
An OrderedSet is a custom MutableSet that remembers its order, so that
|
||||||
every entry has an index that can be looked up.
|
every entry has an index that can be looked up.
|
||||||
|
|||||||
Reference in New Issue
Block a user