Skip to content

Commit 03e29d3

Browse files
committed
enh: use warning filters
1 parent c7ceccf commit 03e29d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fmriprep/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@
102102
warnings.filterwarnings('ignore', 'cmp not installed')
103103
warnings.filterwarnings('ignore', 'This has not been fully tested. Please report any failures.')
104104
warnings.filterwarnings('ignore', "can't resolve package from __spec__ or __package__")
105-
warnings.simplefilter('ignore', DeprecationWarning)
106-
warnings.simplefilter('ignore', FutureWarning)
107-
warnings.simplefilter('ignore', ResourceWarning)
105+
warnings.filterwarnings('ignore', category=DeprecationWarning)
106+
warnings.filterwarnings('ignore', category=FutureWarning)
107+
warnings.filterwarnings('ignore', category=ResourceWarning)
108108

109109

110110
try:

0 commit comments

Comments
 (0)