python command line yes/no input
- by h3
Is there any short way to achieve what APT does in Python ?
I mean, when the package manager prompts a yes/no question followed by "[Yes/no]".
The scripts accepts YES/Y/yes/y or "enter" (defaults to Yes as hinted by the capital)
The only thing I find in the official doc is input/raw_input..
I know it's not that hard to emulate, but it's annoying to rewrite :|