Skip to content

Commit

Permalink
Fix hook check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jul 10, 2024
1 parent 7a5ea54 commit 08d0d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperf/_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __exit__(self, _exc_type, _exc_value, _traceback):

class pystats(HookBase):
def __init__(self):
if not hasattr(sys, "_pystats_on"):
if not hasattr(sys, "_stats_on"):
raise HookError(
"Can not collect pystats because python was not built with --enable-pystats"
)
Expand Down

0 comments on commit 08d0d9e

Please sign in to comment.