Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MNT: Clean up deprecations
  • Loading branch information
effigies committed Jun 16, 2021
commit 9745ebdd96ed3b6c3750aa1a5fbd3aae96aa67b8
2 changes: 1 addition & 1 deletion nipype/interfaces/base/traits_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(usually by Robert Kern).

"""
from collections import Sequence
from collections.abc import Sequence

# perform all external trait imports here
from traits import __version__ as traits_version
Expand Down
4 changes: 2 additions & 2 deletions nipype/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys
import re
from collections import Iterator
from collections.abc import Iterator
from warnings import warn

from distutils.version import LooseVersion
Expand Down Expand Up @@ -34,7 +34,7 @@ def atoi(text):
def natural_keys(text):
if isinstance(text, tuple):
text = text[0]
return [atoi(c) for c in re.split("(\d+)", text)]
return [atoi(c) for c in re.split(r"(\d+)", text)]

return sorted(l, key=natural_keys)

Expand Down