Skip to content

Commit c77e00d

Browse files
authored
sty: use deprecationwarning
1 parent 57bd5fe commit c77e00d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import os
1818
from glob import glob
1919
from shutil import rmtree
20-
from warnings import warn
2120

2221
import numpy as np
2322
from nibabel import load
@@ -1076,7 +1075,7 @@ class ContrastMgr(FSLCommand):
10761075
corrections file is no longer generated by FILMGLS.
10771076
"""
10781077
if Info.version() and LooseVersion(Info.version()) >= LooseVersion("5.0.7"):
1079-
warn("ContrastMgr is deprecated in FSL 5.0.7+", DeprecationWarning)
1078+
DeprecationWarning("ContrastMgr is deprecated in FSL 5.0.7+")
10801079
_cmd = 'contrast_mgr'
10811080
input_spec = ContrastMgrInputSpec
10821081
output_spec = ContrastMgrOutputSpec

0 commit comments

Comments
 (0)