Skip to content

Commit db73fe9

Browse files
committed
src/sage/parallel/map_reduce.py: logger.warn -> logger.warning
Fixes a DeprecationWarning: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn(f"Profiling in {output} ...")
1 parent 2f1a76d commit db73fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/parallel/map_reduce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ def run(self):
17131713
PROFILER.runcall(self.run_myself)
17141714

17151715
output = profile + str(self._iproc)
1716-
logger.warn(f"Profiling in {output} ...")
1716+
logger.warning(f"Profiling in {output} ...")
17171717
PROFILER.dump_stats(output)
17181718
else:
17191719
self.run_myself()

0 commit comments

Comments
 (0)