Skip to content

Commit

Permalink
Fix outdated import of Mapping in utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Nov 6, 2023
1 parent 6167e03 commit 5775b19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nmrml2isa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
import tarfile
import collections

try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping

from . import __version__, __author__, __email__

NMR_CV_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'nmrCV.owl')
Expand Down Expand Up @@ -65,7 +70,7 @@ def __getattr__(self, attr):
return self.name
return getattr(self.BufferedReader, attr)

class ChainMap(collections.Mapping):
class ChainMap(Mapping):
"""A quick backport of collections.ChainMap
"""

Expand Down

0 comments on commit 5775b19

Please sign in to comment.