Skip to content

Commit

Permalink
Support older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jul 8, 2024
1 parent 7cc201e commit 81bbd97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyperf/_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@


def get_hooks():
return (x.load() for x in importlib.metadata.entry_points(group="pyperf.hook"))
entry_points = importlib.metadata.entry_points()
return (x.load() for x in entry_points.select(group="pyperf.hook"))


def get_hook_names():
Expand Down

0 comments on commit 81bbd97

Please sign in to comment.