Skip to content

Commit 1615236

Browse files
committed
MNT: Clean up deprecations
1 parent 25acd48 commit 1615236

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nipype/interfaces/base/traits_extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(usually by Robert Kern).
2020
2121
"""
22-
from collections import Sequence
22+
from collections.abc import Sequence
2323

2424
# perform all external trait imports here
2525
from traits import __version__ as traits_version

nipype/utils/misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import sys
88
import re
9-
from collections import Iterator
9+
from collections.abc import Iterator
1010
from warnings import warn
1111

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

3939
return sorted(l, key=natural_keys)
4040

0 commit comments

Comments
 (0)