Skip to content

Commit

Permalink
Merge pull request #344 from achilleas-k/abc-imports
Browse files Browse the repository at this point in the history
[v1.4] Change collections ABC imports to new module
  • Loading branch information
jgrewe committed Oct 31, 2018
2 parents 6eb7e56 + 42a1ab9 commit 07824f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nixio/pycore/section.py
Expand Up @@ -7,7 +7,10 @@
# LICENSE file in the root of the Project.
from __future__ import (absolute_import, division, print_function)

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

from ..section import SectionMixin
from .entity import NamedEntity
Expand Down
5 changes: 4 additions & 1 deletion nixio/pycore/util/units.py
Expand Up @@ -9,7 +9,10 @@
from __future__ import (absolute_import, division, print_function)

import re
from collections import Sequence
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
from ..exceptions import InvalidUnit


Expand Down

0 comments on commit 07824f9

Please sign in to comment.