From 0e2da7deb59b3e6fecb39c57105e0e74ebbfabc0 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 8 Jan 2026 14:43:52 +0000 Subject: [PATCH] mitogen: Fix AttributeError in mitogen.profiler --- docs/changelog.rst | 2 ++ mitogen/profiler.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 855ef734..3c0a46b2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -25,6 +25,8 @@ In progress (unreleased) ``import requests`` in a Mitogen child * :gh:issue:`1403` :mod:`mitogen`: Add initial support for :py:class:`importlib.resource.abc.ResourceReader` protocol +* :gh:issue:`1407` :mod:`mitogen`: Fix :exc:`AttributeError` in + :mod:`mitogen.profiler` v0.3.36 (2025-12-01) diff --git a/mitogen/profiler.py b/mitogen/profiler.py index 512a593e..bbf6086a 100644 --- a/mitogen/profiler.py +++ b/mitogen/profiler.py @@ -90,7 +90,7 @@ def merge_stats(outpath, inpaths): break time.sleep(0.2) - pstats.dump_stats(outpath) + stats.dump_stats(outpath) def generate_stats(outpath, tmpdir):