def _password_required(self, event): """ Asks the user for a password and sets <self._password>. If <self._password> is None, no password has been requested yet. If an empty string is set, assume that the user did not provide a password. """ password = archive.ask_for_password() if password is None: password = "" self._password = password event.set()
def _password_required(self): """ Asks the user for a password and sets <self._password>. If <self._password> is None, no password has been requested yet. If an empty string is set, assume that the user did not provide a password. """ password = archive.ask_for_password(self.archive) if password is None: password = "" self._password = password self._event.set()