We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25acd48 commit 1615236Copy full SHA for 1615236
nipype/interfaces/base/traits_extension.py
@@ -19,7 +19,7 @@
19
(usually by Robert Kern).
20
21
"""
22
-from collections import Sequence
+from collections.abc import Sequence
23
24
# perform all external trait imports here
25
from traits import __version__ as traits_version
nipype/utils/misc.py
@@ -6,7 +6,7 @@
6
import os
7
import sys
8
import re
9
-from collections import Iterator
+from collections.abc import Iterator
10
from warnings import warn
11
12
from distutils.version import LooseVersion
@@ -34,7 +34,7 @@ def atoi(text):
34
def natural_keys(text):
35
if isinstance(text, tuple):
36
text = text[0]
37
- return [atoi(c) for c in re.split("(\d+)", text)]
+ return [atoi(c) for c in re.split(r"(\d+)", text)]
38
39
return sorted(l, key=natural_keys)
40
0 commit comments