Skip to content

Commit 9f61fdd

Browse files
committed
Update README to reflect latest way to instantiate plugins
1 parent 449d4ec commit 9f61fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Example
1818
-------
1919

2020
```python
21-
from pkg_resources import iter_entry_points
21+
import importlib.metadata
2222

2323
import click
2424
from click_plugins import with_plugins
2525

2626

27-
@with_plugins(iter_entry_points('click_command_tree'))
27+
@with_plugins(importlib.metadata.entry_points(group="click_command_tree"))
2828
@click.group()
2929
def root():
3030
pass

0 commit comments

Comments
 (0)