Overwrite original AFP file instead of making a temporary copy.

This commit is contained in:
Jennifer Taylor
2020-11-23 22:33:12 +00:00
parent f6b90ea014
commit 526a462ef4

View File

@@ -1721,7 +1721,7 @@ def main() -> int:
afpfile.unparse()
else:
print(f"Writing {args.file}...")
with open(args.file + ".tmp", "wb") as bfp:
with open(args.file, "wb") as bfp:
bfp.write(afpfile.unparse())
return 0