Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 22, 2024
1 parent f700402 commit ec80b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobaya/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def truncate_to_end_line(file_name):
# Find the last complete line
inp.seek(0, 2) # Go to the end of the file
pos = inp.tell() - 1
while pos > 0 and inp.read(1) != "\n":
while pos > 0 and inp.read(1) != b"\n":
pos -= 1
inp.seek(pos, 0)
if pos > 0:
Expand Down

0 comments on commit ec80b07

Please sign in to comment.