Skip to content

Commit

Permalink
MNT: Drop invalid "is not" usage
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed May 30, 2021
1 parent 58b8a9c commit 100d7f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nipype/interfaces/afni/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def standard_image(img_name):
resource_monitor=False,
terminal_output="allatonce",
).run()
if clout.runtime.returncode is not 0:
if clout.runtime.returncode != 0:
return None

out = clout.runtime.stdout
Expand Down
2 changes: 1 addition & 1 deletion nipype/interfaces/diffusion_toolkit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def version():
"""
clout = CommandLine(command="dti_recon", terminal_output="allatonce").run()

if clout.runtime.returncode is not 0:
if clout.runtime.returncode != 0:
return None

dtirecon = clout.runtime.stdout
Expand Down
4 changes: 2 additions & 2 deletions nipype/utils/tests/test_filemanip.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def test_copyfiles(_temp_analyze_files, _temp_analyze_files_prime):


def test_linkchain(_temp_analyze_files):
if os.name is not "posix":
if os.name != "posix":
return
orig_img, orig_hdr = _temp_analyze_files
pth, fname = os.path.split(orig_img)
Expand Down Expand Up @@ -230,7 +230,7 @@ def test_recopy(_temp_analyze_files):


def test_copyfallback(_temp_analyze_files):
if os.name is not "posix":
if os.name != "posix":
return
orig_img, orig_hdr = _temp_analyze_files
pth, imgname = os.path.split(orig_img)
Expand Down

0 comments on commit 100d7f3

Please sign in to comment.