From 7db2111497208d9cb8f91cfce8707bd8b7bbf5db Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 29 Sep 2024 11:41:01 +0100 Subject: [PATCH] dont dedupe prefixes, might be useful later --- pyinstrument/session.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyinstrument/session.py b/pyinstrument/session.py index 305ed7fb..255ca9de 100644 --- a/pyinstrument/session.py +++ b/pyinstrument/session.py @@ -142,9 +142,7 @@ def combine(session1: Session, session2: Session) -> Session: @staticmethod def current_sys_prefixes() -> list[str]: - prefixes = [sys.prefix, sys.base_prefix, sys.exec_prefix, sys.base_exec_prefix] - # deduplicate - return list(set(prefixes)) + return [sys.prefix, sys.base_prefix, sys.exec_prefix, sys.base_exec_prefix] def root_frame(self, trim_stem: bool = True) -> Frame | None: """