MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / __init__

Method __init__

pgpy/pgp.py:955–973  ·  view source on GitHub ↗

PGPMessage objects represent OpenPGP message compositions. PGPMessage implements the ``__str__`` method, the output of which will be the message composition in OpenPGP-compliant ASCII-armored format. PGPMessage implements the ``__bytes__`` method, the output of whi

(self)

Source from the content-addressed store, hash-verified

953 raise NotImplementedError
954
955 def __init__(self):
956 """
957 PGPMessage objects represent OpenPGP message compositions.
958
959 PGPMessage implements the ``__str__`` method, the output of which will be the message composition in
960 OpenPGP-compliant ASCII-armored format.
961
962 PGPMessage implements the ``__bytes__`` method, the output of which will be the message composition in
963 OpenPGP-compliant binary format.
964
965 Any signatures within the PGPMessage that are marked as being non-exportable will not be included in the output
966 of either of those methods.
967 """
968 super(PGPMessage, self).__init__()
969 self._compression = CompressionAlgorithm.Uncompressed
970 self._message = None
971 self._mdc = None
972 self._signatures = SorteDeque()
973 self._sessionkeys = []
974
975 def __bytearray__(self):
976 if self.is_compressed:

Callers

nothing calls this directly

Calls 2

SorteDequeClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected