summaryrefslogtreecommitdiff
path: root/pkg_resources/extern
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-01-13 10:07:55 -0500
committerJason R. Coombs <jaraco@jaraco.com>2023-01-13 10:14:22 -0500
commit12123d9761b16831285f901ea5d3337628779d37 (patch)
treee179f95826816c958b66bd11675e7bfba20e568d /pkg_resources/extern
parent2ad7228685dc80984f390452ffd2d8a9b5900c8b (diff)
downloadpython-setuptools-git-12123d9761b16831285f901ea5d3337628779d37.tar.gz
Replace appdirs with platformdirs.
Diffstat (limited to 'pkg_resources/extern')
-rw-r--r--pkg_resources/extern/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg_resources/extern/__init__.py b/pkg_resources/extern/__init__.py
index 70897eea..bacc5d77 100644
--- a/pkg_resources/extern/__init__.py
+++ b/pkg_resources/extern/__init__.py
@@ -58,7 +58,8 @@ class VendorImporter:
"""Return a module spec for vendored names."""
return (
importlib.util.spec_from_loader(fullname, self)
- if self._module_matches_namespace(fullname) else None
+ if self._module_matches_namespace(fullname)
+ else None
)
def install(self):
@@ -70,7 +71,11 @@ class VendorImporter:
names = (
- 'packaging', 'pyparsing', 'appdirs', 'jaraco', 'importlib_resources',
+ 'packaging',
+ 'pyparsing',
+ 'platformdirs',
+ 'jaraco',
+ 'importlib_resources',
'more_itertools',
)
VendorImporter(__name__, names).install()