def pop(self):
        """
        Removes the last certificate from the path

        :return:
            The current ValidationPath object, for chaining
        """

        last_cert = self._certs.pop()
        self._cert_hashes.remove(last_cert.issuer_serial)

        return self
def pop ( self ) : last_cert = self . _certs . pop ( ) self . _cert_hashes . remove ( last_cert . issuer_serial ) return self
Removes the last certificate from the path

        :return:
            The current ValidationPath object, for chaining