Skip to content

Commit 9fd9785

Browse files
committed
MNT: Drop invalid "is not" usage
1 parent da278a6 commit 9fd9785

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

nipype/interfaces/afni/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def standard_image(img_name):
9898
resource_monitor=False,
9999
terminal_output="allatonce",
100100
).run()
101-
if clout.runtime.returncode is not 0:
101+
if clout.runtime.returncode != 0:
102102
return None
103103

104104
out = clout.runtime.stdout

nipype/interfaces/diffusion_toolkit/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def version():
4747
"""
4848
clout = CommandLine(command="dti_recon", terminal_output="allatonce").run()
4949

50-
if clout.runtime.returncode is not 0:
50+
if clout.runtime.returncode != 0:
5151
return None
5252

5353
dtirecon = clout.runtime.stdout

nipype/utils/tests/test_filemanip.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_copyfiles(_temp_analyze_files, _temp_analyze_files_prime):
154154

155155

156156
def test_linkchain(_temp_analyze_files):
157-
if os.name is not "posix":
157+
if os.name != "posix":
158158
return
159159
orig_img, orig_hdr = _temp_analyze_files
160160
pth, fname = os.path.split(orig_img)
@@ -230,7 +230,7 @@ def test_recopy(_temp_analyze_files):
230230

231231

232232
def test_copyfallback(_temp_analyze_files):
233-
if os.name is not "posix":
233+
if os.name != "posix":
234234
return
235235
orig_img, orig_hdr = _temp_analyze_files
236236
pth, imgname = os.path.split(orig_img)

0 commit comments

Comments
 (0)