revert black changes
@@ -37,7 +37,7 @@ def write_installed_files_from_setuptools_record(
for line in record_lines:
directory = os.path.dirname(line)
- if directory.endswith(".egg-info"):
+ if directory.endswith('.egg-info'):
egg_info_dir = prepend_root(directory)
break
else:
@@ -56,9 +56,9 @@ def write_installed_files_from_setuptools_record(
new_lines.append(os.path.relpath(prepend_root(filename), egg_info_dir))
new_lines.sort()
ensure_dir(egg_info_dir)
- inst_files_path = os.path.join(egg_info_dir, "installed-files.txt")
- with open(inst_files_path, "w") as f:
- f.write("\n".join(new_lines) + "\n")
+ inst_files_path = os.path.join(egg_info_dir, 'installed-files.txt')
+ with open(inst_files_path, 'w') as f:
+ f.write('\n'.join(new_lines) + '\n')
def install(
@@ -82,7 +82,7 @@ def install(
with TempDirectory(kind="record") as temp_dir:
try:
- record_filename = os.path.join(temp_dir.path, "install-record.txt")
+ record_filename = os.path.join(temp_dir.path, 'install-record.txt')
install_args = make_setuptools_install_args(
setup_py_path,
global_options=global_options,
@@ -107,7 +107,7 @@ def install(
)
if not os.path.exists(record_filename):
- logger.debug("Record file %s not found", record_filename)
+ logger.debug('Record file %s not found', record_filename)
# Signal to the caller that we didn't install the new package
return False
