Skip to content

Commit 346c297

Browse files
committed
Use entry_points().select to fix python 3.12
1 parent 51bb9aa commit 346c297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/cli/packages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ class EntryPointGroup(click.Group):
6161
def list_commands(self, ctx):
6262
rv = []
6363

64-
for entry_point in entry_points().get(self.ENTRYPOINT_NAME, []):
64+
for entry_point in entry_points().select(group=self.ENTRYPOINT_NAME):
6565
rv.append(entry_point.name)
6666

6767
rv.sort()
6868
return rv
6969

7070
def get_command(self, ctx, name):
71-
for entry_point in entry_points().get(self.ENTRYPOINT_NAME, []):
71+
for entry_point in entry_points().select(group=self.ENTRYPOINT_NAME):
7272
if entry_point.name == name:
7373
return entry_point.load()

0 commit comments

Comments
 (0)