def prompt_for_pw(filename):
    print 'Please enter a password to decrypt {}.'.format(filename)
    print '(The password will not be shown. Press ^C to cancel).'

    try:
        return getpass.getpass('--> ')
    except KeyboardInterrupt:
        sys.stderr.write('Aborted by user.\n')
        sys.exit(2)
Inserts a new bug in a bug file.
dataset/ETHPy150Open hellerbarde/stapler/staplelib/iohelper.py/prompt_for_pw--crossover with--dataset/ETHPy150Open joehewitt/devon/devon/bugs.py/insertNew