Skip to content

Commit

Permalink
Fix one more file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-at-adacore committed Jan 30, 2025
1 parent 21a265e commit 8e6097c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/rst_update_prelude.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def section_start(l):
with open(f, "rt") as ff:
file_lines = ff.read().splitlines()

f_out = open(f, "w") if args.in_place else sys.stdout
f_out = open(f, "wt") if args.in_place else sys.stdout

def print_out(*a, **kw):
kw.setdefault("file", f_out)
Expand Down

0 comments on commit 8e6097c

Please sign in to comment.