forked from TrueCloudLab/frostfs-testlib
[#98] Small dependency cleanup
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
dd347dd8fb
commit
1c3bbe26f7
3 changed files with 2 additions and 9 deletions
|
@ -1,12 +1,6 @@
|
|||
import sys
|
||||
from importlib.metadata import entry_points
|
||||
from typing import Any
|
||||
|
||||
if sys.version_info < (3, 10):
|
||||
# On Python prior 3.10 we need to use backport of entry points
|
||||
from importlib_metadata import entry_points
|
||||
else:
|
||||
from importlib.metadata import entry_points
|
||||
|
||||
|
||||
def load_plugin(plugin_group: str, name: str) -> Any:
|
||||
"""Loads plugin using entry point specification.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue