Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Oct 12, 2024
1 parent 3b6fd56 commit f8f2d22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ovos_plugin_manager/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing import Optional

import pkg_resources
from ovos_utils.log import LOG, log_deprecation
from ovos_utils.log import LOG, log_deprecation, deprecated


class PluginTypes(str, Enum):
Expand Down Expand Up @@ -173,9 +173,8 @@ def load_plugin(plug_name: str, plug_type: Optional[PluginTypes] = None):
LOG.warning(f'Could not find the plugin {plug_type}.{plug_name}')
return None


@deprecated("normalize_lang has been deprecated! update to 'from ovos_utils.lang import standardize_lang_tag'", "1.0.0")
def normalize_lang(lang):
# TODO - add deprecation warning
from ovos_utils.lang import standardize_lang_tag
return standardize_lang_tag(lang)

Expand Down

0 comments on commit f8f2d22

Please sign in to comment.