Skip to content

Commit bf38d9e

Browse files
committed
rf(py314): Replace deprecated pkgutil.find_loader
1 parent 5d7a6d3 commit bf38d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fmriprep/cli/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ def parse_args(args=None, namespace=None):
794794
config.from_dict(vars(opts), init=['nipype'])
795795

796796
if not config.execution.notrack:
797-
import pkgutil
797+
import importlib.util
798798

799-
if pkgutil.find_loader('sentry_sdk') is None:
799+
if importlib.util.find_spec('sentry_sdk') is None:
800800
config.execution.notrack = True
801801
config.loggers.cli.warning('Telemetry disabled because sentry_sdk is not installed.')
802802
else:

0 commit comments

Comments
 (0)