Skip to content

Commit

Permalink
fix mypi bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmacias95 committed Jul 15, 2024
1 parent e7a57da commit 4060650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/_pyrepl/simple_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def more_lines(unicodetext: str) -> bool:
input_n += 1
except KeyboardInterrupt:
r = _get_reader()
if 'isearch' in r.last_command.__name__:
if r.last_command and 'isearch' in r.last_command.__name__:
r.isearch_direction = ''
r.console.forgetinput()
r.pop_input_trans()
Expand Down

0 comments on commit 4060650

Please sign in to comment.