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

Commit e0f9355

Browse filesBrowse files
committed
MNT: Drop invalid "is not" usage
1 parent 7f32ffe commit e0f9355
Copy full SHA for e0f9355

File tree

Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed

‎nipype/interfaces/afni/base.py

Copy file name to clipboardExpand all lines: nipype/interfaces/afni/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/interfaces/diffusion_toolkit/base.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: nipype/utils/tests/test_filemanip.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.