Skip to content

Commit 50689e8

Browse files
STY: Apply ruff/refurb rule FURB167
FURB167 Use of regular expression alias `re.X` FURB167 Use of regular expression alias `re.M`
1 parent 967aacc commit 50689e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nipype/sphinxext/apidoc/docstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class InterfaceDocstring(NipypeDocstring):
6262
_name_rgx = re.compile(
6363
r"^\s*(:(?P<role>\w+):`(?P<name>[a-zA-Z0-9_.-]+)`|"
6464
r" (?P<name2>[a-zA-Z0-9_.-]+))\s*",
65-
re.X,
65+
re.VERBOSE,
6666
)
6767

6868
def __init__(

nipype/sphinxext/plot_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def contains_doctest(text):
484484
return False
485485
except SyntaxError:
486486
pass
487-
r = re.compile(r"^\s*>>>", re.M)
487+
r = re.compile(r"^\s*>>>", re.MULTILINE)
488488
m = r.search(text)
489489
return bool(m)
490490

0 commit comments

Comments
 (0)