mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Don't check write access on the same path twice
This commit is contained in:
parent
ecac7a17b5
commit
79f0591630
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ def get_lib_location_guesses(*args, **kwargs):
|
|||
|
||||
def site_packages_writable(**kwargs):
|
||||
return all(
|
||||
test_writable_dir(d) for d in get_lib_location_guesses(**kwargs)
|
||||
test_writable_dir(d) for d in set(get_lib_location_guesses(**kwargs))
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue