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)
| 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: |
nothing calls this directly
no test coverage detected