Skip to content

Commit

Permalink
Remove pkg_ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Jan 22, 2024
1 parent bee5566 commit 0e3a2f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tealer/utils/command_line/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
import argparse

from typing import List, Type, Tuple, TYPE_CHECKING, Dict
from pkg_resources import iter_entry_points # type: ignore
from importlib.metadata import entry_points


from tealer.detectors.abstract_detector import (
AbstractDetector,
Expand Down Expand Up @@ -108,7 +109,7 @@ def collect_plugins() -> Tuple[List[Type[AbstractDetector]], List[Type[AbstractP
"""
detector_classes: List[Type[AbstractDetector]] = []
printer_classes: List[Type[AbstractPrinter]] = []
for entry_point in iter_entry_points(group="teal_analyzer.plugin", name=None):
for entry_point in entry_points(group="teal_analyzer.plugin"):
make_plugin = entry_point.load()

plugin_detectors, plugin_printers = make_plugin()
Expand Down

0 comments on commit 0e3a2f2

Please sign in to comment.