Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
McSinyx committed Mar 31, 2020
1 parent 7ec31a7 commit f164531
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pip/_internal/operations/install/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,12 +574,15 @@ def is_entrypoint_wrapper(name):
record_path = os.path.join(dest_info_dir, 'RECORD')
with open(record_path, **csv_io_kwargs('r')) as record_file:
# Sort to simplify testing.
rows = sorted_outrows(get_csv_rows_for_installed(
csv.reader(record_file), installed=installed, changed=changed,
generated=generated, lib_dir=lib_dir))
rows = get_csv_rows_for_installed(
csv.reader(record_file),
installed=installed,
changed=changed,
generated=generated,
lib_dir=lib_dir)
with adjacent_tmp_file(record_path, **csv_io_kwargs('w+')) as record_file:
writer = csv.writer(record_file)
writer.writerows(rows)
writer.writerows(sorted_outrows(rows))
replace(record_file.name, record_path)


Expand Down

0 comments on commit f164531

Please sign in to comment.