From 52f23593e214829cc09cf2756d419d98f519847b Mon Sep 17 00:00:00 2001 From: youknowdot Date: Wed, 21 Oct 2026 22:04:04 +0900 Subject: [PATCH] Stage profiling root as a namespace until sampling is available Omit the whole newly added canonical package initializer rather than advertise an absent sampling module or hand-edit canonical __all__. Explicit profiling.tracing and cProfile imports remain available. The namespace root intentionally lacks canonical metadata/automatic exports. This addresses test___all__ failures in the prior Linux, macOS and Windows CI runs. No test assertions, skips or canonical file contents are changed. Assisted-by: dot:GPT-6.1 --- Lib/profiling/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 Lib/profiling/__init__.py diff --git a/Lib/profiling/__init__.py b/Lib/profiling/__init__.py deleted file mode 100644 index c94e1e16e..000000000 --- a/Lib/profiling/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -"""Python profiling tools. - -This package provides two types of profilers: - -- profiling.tracing: Deterministic tracing profiler that instruments every - function call and return. Higher overhead but provides exact call counts - and timing. - -- profiling.sampling: Statistical sampling profiler that periodically samples - the call stack. Low overhead and suitable for production use. -""" - -__all__ = ("tracing", "sampling")