Skip to content

Commit 9b195bc

Browse files
committed
Fix mypy error in locations
1 parent c54d404 commit 9b195bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/locations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def _looks_like_bpo_44860() -> bool:
6464

6565
def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
6666
platlib = scheme["platlib"]
67-
if "/$platlibdir/" in platlib and hasattr(sys, "platlibdir"):
68-
platlib = platlib.replace("/$platlibdir/", f"/{sys.platlibdir}/")
67+
if "/$platlibdir/" in platlib:
68+
platlib = platlib.replace("/$platlibdir/", f"/{_PLATLIBDIR}/")
6969
if "/lib64/" not in platlib:
7070
return False
7171
unpatched = platlib.replace("/lib64/", "/lib/")

0 commit comments

Comments
 (0)