reconcile: Remove debugging lines.

This commit is contained in:
Ben Sturmfels 2022-02-09 12:32:14 +11:00
parent 31146b8843
commit 21852845c0
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -178,11 +178,11 @@ if metadata_to_apply:
for filename, line, metadata in sorted(metadata_to_apply):
if filename not in files:
with open(filename, 'r') as f:
print(f'Opening {filename}.')
# print(f'Opening {filename}.')
files[filename] = [0, f.readlines()] # Offset and contents
files[filename][1].insert(line + files[filename][0], metadata)
files[filename][0] += 1
print(f'File {filename} offset {files[filename][0]}')
# print(f'File {filename} offset {files[filename][0]}')
for filename in files:
with open(filename, 'w') as f:
f.writelines(files[filename][1])