##// END OF EJS Templates
custom keyboard interrupt handling in ask_yes_no...
custom keyboard interrupt handling in ask_yes_no Sometimes, Ctrl-C just makes sense as an answer, and re-asking the question is just frustrating. This changes makes it possible to break out of the asking loop via Ctrl-C. This is particularly handy for asking questions from the command line, where one expects Ctrl-c to be a sort of "Cancel" operation, and is often functionally equivalent to "no"

File last commit:

r13348:e6afea51
r13609:73441e41
Show More
print_argv.py
3 lines | 69 B | text/x-python | PythonLexer
from __future__ import print_function
import sys
print(sys.argv[1:])