We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7e2d9 commit 21b3083Copy full SHA for 21b3083
Lib/_pyrepl/readline.py
@@ -434,7 +434,6 @@ def _is_editline_history(filename: str | IO[bytes]) -> bool:
434
return False
435
with open(filename, "rb") as f:
436
return f.readline().startswith(_EDITLINE_BYTES_MARKER)
437
- return False
438
return filename.readline().startswith(_EDITLINE_BYTES_MARKER)
439
440
def read_history_file(self, filename: str = gethistoryfile()) -> None:
0 commit comments