'Prompt for a password using L{getpass.getpass}.
@param prompt: Written on tty to ask for the input.
@type prompt: L{str}
@return: The input.
@rtype: L{str}'

def _getPassword(self, prompt):

    with self._replaceStdoutStdin():
        try:
            p = getpass.getpass(prompt)
            return p
        except (KeyboardInterrupt, IOError):
            print()
            raise ConchError('PEBKAC')
