3333from ._compat import (
3434 NullFinder ,
3535 install ,
36- localize_dist ,
37- localize_metadata ,
38- localize_package_path ,
36+ localize ,
3937)
4038from ._functools import apply , compose , method_cache , pass_none
4139from ._itertools import always_iterable , bucket , unique_everseen
@@ -412,7 +410,7 @@ def locate_file(self, path: str | os.PathLike[str]) -> SimplePath:
412410 """
413411
414412 @classmethod
415- @apply (localize_dist )
413+ @apply (localize . dist )
416414 def from_name (cls , name : str ) -> Distribution :
417415 """Return the Distribution for the given package name.
418416
@@ -431,7 +429,7 @@ def from_name(cls, name: str) -> Distribution:
431429 raise PackageNotFoundError (name )
432430
433431 @classmethod
434- @apply (functools .partial (map , localize_dist ))
432+ @apply (functools .partial (map , localize . dist ))
435433 def discover (
436434 cls , * , context : Optional [DistributionFinder .Context ] = None , ** kwargs
437435 ) -> Iterable [Distribution ]:
@@ -479,7 +477,7 @@ def _discover_resolvers():
479477 return filter (None , declared )
480478
481479 @property
482- @apply (localize_metadata )
480+ @apply (localize . metadata )
483481 def metadata (self ) -> _meta .PackageMetadata :
484482 """Return the parsed metadata for this Distribution.
485483
@@ -530,7 +528,7 @@ def entry_points(self) -> EntryPoints:
530528 return EntryPoints ._from_text_for (self .read_text ('entry_points.txt' ), self )
531529
532530 @property
533- @apply (pass_none (compose (list , functools .partial (map , localize_package_path ))))
531+ @apply (pass_none (compose (list , functools .partial (map , localize . package_path ))))
534532 def files (self ) -> Optional [List [PackagePath ]]:
535533 """Files in this distribution.
536534
0 commit comments