Skip to content

Commit

Permalink
dont dedupe prefixes, might be useful later
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Sep 29, 2024
1 parent 300be92 commit 7db2111
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyinstrument/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 7db2111

Please sign in to comment.