Skip to content

Commit b0de5ff

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 3ec68b5 commit b0de5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/docparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _parse_doc(doc, style=["--"]):
283283
flag = [
284284
item
285285
for i, item in enumerate(linelist)
286-
if i < 2 and any(item.startswith(s) for s in style) and len(item) > 1
286+
if i < 2 and item.startswith(tuple(style)) and len(item) > 1
287287
]
288288
if flag:
289289
if len(flag) == 1:

0 commit comments

Comments
 (0)