Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

REL: 1.6.1 #3336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 16, 2021
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 2 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 4 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.