Skip to content

Commit 030a572

Browse files
committed
format
1 parent de4711f commit 030a572

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

news/13528.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
selfcheck file in cache directory has same permissions as the rest of the cache.
1+
selfcheck file in cache directory has same permissions as the rest of the cache.

src/pip/_internal/network/cache.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
from pip._vendor.cachecontrol.caches import SeparateBodyFileCache
1414
from pip._vendor.requests.models import Response
1515

16-
from pip._internal.utils.filesystem import adjacent_tmp_file, replace, copy_directory_permissions
16+
from pip._internal.utils.filesystem import (
17+
adjacent_tmp_file,
18+
copy_directory_permissions,
19+
replace,
20+
)
1721
from pip._internal.utils.misc import ensure_dir
1822

1923

src/pip/_internal/self_outdated_check.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
get_best_invocation_for_this_pip,
2828
get_best_invocation_for_this_python,
2929
)
30-
from pip._internal.utils.filesystem import adjacent_tmp_file, check_path_owner, replace, copy_directory_permissions
30+
from pip._internal.utils.filesystem import (
31+
adjacent_tmp_file,
32+
check_path_owner,
33+
copy_directory_permissions,
34+
replace,
35+
)
3136
from pip._internal.utils.misc import (
3237
ExternallyManagedEnvironment,
3338
check_externally_managed,

src/pip/_internal/utils/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ def copy_directory_permissions(directory: str, target_file: BinaryIO) -> None:
162162
if os.chmod in os.supports_fd:
163163
os.chmod(target_file.fileno(), mode)
164164
elif os.chmod in os.supports_follow_symlinks:
165-
os.chmod(target_file.name, mode, follow_symlinks=False)
165+
os.chmod(target_file.name, mode, follow_symlinks=False)

0 commit comments

Comments
 (0)