diff --git a/nibabel/nicom/ascconv.py b/nibabel/nicom/ascconv.py index 8ec72fb3e..6d7243603 100644 --- a/nibabel/nicom/ascconv.py +++ b/nibabel/nicom/ascconv.py @@ -10,7 +10,7 @@ ASCCONV_RE = re.compile( r'### ASCCONV BEGIN((?:\s*[^=\s]+=[^=\s]+)*) ###\n(.*?)\n### ASCCONV END ###', - flags=re.M | re.S, + flags=re.MULTILINE | re.DOTALL, ) diff --git a/pyproject.toml b/pyproject.toml index becc93366..316abdeca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ select = [ "B", "C4", "F", + "FURB", "I", "PLE", "Q",