Skip to content

Commit 400e295

Browse files
committed
fixup!
1 parent 9d31898 commit 400e295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def _analyze_history_file(filename: str | IO[bytes]) -> tuple[bool, str]:
436436
with open(filename, "rb") as f:
437437
is_editline = f.readline().startswith(_EDITLINE_BYTES_MARKER)
438438
else:
439-
is_editline = f.readline().startswith(_EDITLINE_BYTES_MARKER)
439+
is_editline = filename.readline().startswith(_EDITLINE_BYTES_MARKER)
440440
if is_editline:
441441
return True, "unicode-escape"
442442
return False, "utf-8"

0 commit comments

Comments
 (0)