Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/typecode/_vendor/pygments/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@

def iter_entry_points(group_name):
try:
import pkg_resources
import importlib.metadata
except (ImportError, IOError):
return []

return pkg_resources.iter_entry_points(group_name)
return importlib.metadata.entry_points(group=group_name)


def find_plugin_lexers():
Expand Down
Loading