reconcile: Remove debugging lines.
This commit is contained in:
parent
31146b8843
commit
21852845c0
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue