Overwrite original AFP file instead of making a temporary copy.
This commit is contained in:
parent
f6b90ea014
commit
526a462ef4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user