Skip to content

Commit 860ba76

Browse files
committed
revert black changes
1 parent 7f0fdaf commit 860ba76

File tree

1 file changed

+6
-6
lines changed
  • src/pip/_internal/operations/install

1 file changed

+6
-6
lines changed

src/pip/_internal/operations/install/legacy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def prepend_root(path: str) -> str:
3737

3838
for line in record_lines:
3939
directory = os.path.dirname(line)
40-
if directory.endswith(".egg-info"):
40+
if directory.endswith('.egg-info'):
4141
egg_info_dir = prepend_root(directory)
4242
break
4343
else:
@@ -56,9 +56,9 @@ def prepend_root(path: str) -> str:
5656
new_lines.append(os.path.relpath(prepend_root(filename), egg_info_dir))
5757
new_lines.sort()
5858
ensure_dir(egg_info_dir)
59-
inst_files_path = os.path.join(egg_info_dir, "installed-files.txt")
60-
with open(inst_files_path, "w") as f:
61-
f.write("\n".join(new_lines) + "\n")
59+
inst_files_path = os.path.join(egg_info_dir, 'installed-files.txt')
60+
with open(inst_files_path, 'w') as f:
61+
f.write('\n'.join(new_lines) + '\n')
6262

6363

6464
def install(
@@ -82,7 +82,7 @@ def install(
8282

8383
with TempDirectory(kind="record") as temp_dir:
8484
try:
85-
record_filename = os.path.join(temp_dir.path, "install-record.txt")
85+
record_filename = os.path.join(temp_dir.path, 'install-record.txt')
8686
install_args = make_setuptools_install_args(
8787
setup_py_path,
8888
global_options=global_options,
@@ -107,7 +107,7 @@ def install(
107107
)
108108

109109
if not os.path.exists(record_filename):
110-
logger.debug("Record file %s not found", record_filename)
110+
logger.debug('Record file %s not found', record_filename)
111111
# Signal to the caller that we didn't install the new package
112112
return False
113113

0 commit comments

Comments
 (0)