mirror of https://github.com/tLDP/python-tldp
MutableMapping moves into collections.abc
This commit is contained in:
parent
aa17eb26fd
commit
4cb5e881d2
|
@ -5,10 +5,15 @@
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
import collections
|
import sys
|
||||||
|
|
||||||
|
if sys.version_info[:2] >= (3, 8): # pragma: no cover
|
||||||
|
from collections.abc import MutableMapping
|
||||||
|
else: # pragma: no cover
|
||||||
|
from collections import MutableMapping
|
||||||
|
|
||||||
|
|
||||||
class LDPDocumentCollection(collections.MutableMapping):
|
class LDPDocumentCollection(MutableMapping):
|
||||||
'''a dict-like container for DocumentCollection objects
|
'''a dict-like container for DocumentCollection objects
|
||||||
|
|
||||||
Intended to be subclassed.
|
Intended to be subclassed.
|
||||||
|
|
Loading…
Reference in New Issue