(self)
return first_password
Get password from the command line prompt.
Get password from the command line prompt.
Get password from the command line prompt .
def get_password_from_prompt(self):
        """Get password from the command line prompt."""
        first_password = prompt_pass('Enter password')
        second_password = prompt_pass('Enter password again')
        if first_password != second_password:
            sys.stderr.write('Passwords don\'t match, try again.\n')
            self.get_password_from_prompt()
        return first_password
def get_password_from_prompt ( self ) : first_password = prompt_pass ( 'Enter password' ) second_password = prompt_pass ( 'Enter password again' ) if first_password != second_password : sys . stderr . write ( 'Passwords don\'t match, try again.\n' ) self . get_password_from_prompt ( ) return first_password