##// END OF EJS Templates
Backport PR #10797: Let keyboard interrupt stop custom dispatch of completer....
Thomas Kluyver -
Show More
@@ -1093,6 +1093,12 b' class IPCompleter(Completer):'
1093 return [cast_unicode_py2(r) for r in res if r.lower().startswith(text_low)]
1093 return [cast_unicode_py2(r) for r in res if r.lower().startswith(text_low)]
1094 except TryNext:
1094 except TryNext:
1095 pass
1095 pass
1096 except KeyboardInterrupt:
1097 """
1098 If custom completer take too long,
1099 let keyboard interrupt abort and return nothing.
1100 """
1101 break
1096
1102
1097 return None
1103 return None
1098
1104
General Comments 0
You need to be logged in to leave comments. Login now