Skip to content

Commit 9d31898

Browse files
committed
fix possible unbound errors
1 parent 6237cc7 commit 9d31898

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/_pyrepl/readline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ def get_current_history_length(self) -> int:
429429

430430
@staticmethod
431431
def _analyze_history_file(filename: str | IO[bytes]) -> tuple[bool, str]:
432+
is_editline = False
432433
if isinstance(filename, str):
433434
if not os.path.exists(filename):
434435
return False, "utf-8"

0 commit comments

Comments
 (0)