Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 14, 2024
1 parent 9704210 commit 7a24c68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mknodes/info/packageregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
from abc import ABCMeta
from collections.abc import MutableMapping

import epregistry

from mknodes.info import packageinfo
from mknodes.utils import log, packagehelpers
from mknodes.utils import log


logger = log.get_logger(__name__)
Expand Down Expand Up @@ -66,7 +68,7 @@ def get_info(self, mod_name: str) -> packageinfo.PackageInfo:
Args:
mod_name: Name of the module
"""
mapping = packagehelpers.get_package_map()
mapping = epregistry.get_packages_distributions()
pkg_name = mapping[mod_name][0] if mod_name in mapping else mod_name
pkg_name = pkg_name.lower()
if pkg_name not in self._packages:
Expand Down

0 comments on commit 7a24c68

Please sign in to comment.