diff options
author | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2022-01-21 15:45:30 +0000 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2022-01-25 08:51:13 +0000 |
commit | 5c565fc7863ec069e64d84495e998bb9ae4b293a (patch) | |
tree | e05ada0dc603b4c16a6fdc998b85825b3c8ad0a1 /tools | |
parent | c0ef9d5ae2abc8f116622cbfdc873b6f90d87146 (diff) | |
download | pip-5c565fc7863ec069e64d84495e998bb9ae4b293a.tar.gz |
Upgrade platformdirs to 2.4.1
Diffstat (limited to 'tools')
-rw-r--r-- | tools/vendoring/patches/platformdirs.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/vendoring/patches/platformdirs.patch b/tools/vendoring/patches/platformdirs.patch index 4f27b743d..079187c7a 100644 --- a/tools/vendoring/patches/platformdirs.patch +++ b/tools/vendoring/patches/platformdirs.patch @@ -1,10 +1,10 @@ diff --git a/src/pip/_vendor/platformdirs/__init__.py b/src/pip/_vendor/platformdirs/__init__.py -index 693b64843..07baa5b1d 100644 +index 46b1157d7..2cfaff76c 100644 --- a/src/pip/_vendor/platformdirs/__init__.py +++ b/src/pip/_vendor/platformdirs/__init__.py -@@ -17,13 +17,13 @@ from .version import __version__, __version_info__ +@@ -19,13 +19,13 @@ - def _set_platform_dir_class() -> Type[PlatformDirsABC]: + def _set_platform_dir_class() -> type[PlatformDirsABC]: if os.getenv("ANDROID_DATA") == "/data" and os.getenv("ANDROID_ROOT") == "/system": - module, name = "platformdirs.android", "Android" + module, name = "pip._vendor.platformdirs.android", "Android" @@ -17,6 +17,6 @@ index 693b64843..07baa5b1d 100644 else: - module, name = "platformdirs.unix", "Unix" + module, name = "pip._vendor.platformdirs.unix", "Unix" - result: Type[PlatformDirsABC] = getattr(importlib.import_module(module), name) + result: type[PlatformDirsABC] = getattr(importlib.import_module(module), name) return result |