Commit cbd02cb8 authored by Elizaveta Shashkova's avatar Elizaveta Shashkova
Browse files

Updates from PyDev: #PyDev-816: Interrupting infinite loop in the Interactive Console

parent 0ad9d9fc
Branches unavailable Tags unavailable
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -122,6 +122,8 @@ class StdIn(BaseStdIn):
if not requested_input:
return '\n' # Yes, a readline must return something (otherwise we can get an EOFError on the input() call).
return requested_input
except KeyboardInterrupt:
raise # Let KeyboardInterrupt go through -- #PyDev-816: Interrupting infinite loop in the Interactive Console
except:
return '\n'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment